2025-01-08 07:20:59 +08:00
|
|
|
include:
|
|
|
|
- supabase/docker-compose.yml
|
|
|
|
|
2025-01-07 23:32:15 +08:00
|
|
|
services:
|
2025-01-08 07:20:59 +08:00
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
container_name: buster-redis
|
2025-01-07 23:32:15 +08:00
|
|
|
ports:
|
2025-01-08 07:20:59 +08:00
|
|
|
- "6379:6379"
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
|
|
interval: 1s
|
|
|
|
timeout: 3s
|
|
|
|
retries: 30
|
2025-01-07 23:32:15 +08:00
|
|
|
|
|
|
|
api:
|
2025-01-08 13:21:28 +08:00
|
|
|
build: ./api
|
2025-01-08 07:20:59 +08:00
|
|
|
env_file:
|
|
|
|
- .env
|
2025-01-07 23:32:15 +08:00
|
|
|
ports:
|
|
|
|
- "3001:3001"
|
2025-01-08 07:20:59 +08:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:3001/health"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
2025-01-07 23:32:15 +08:00
|
|
|
depends_on:
|
2025-01-08 07:20:59 +08:00
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
|
|
|
|
2025-01-07 23:32:15 +08:00
|
|
|
web:
|
2025-01-08 06:37:31 +08:00
|
|
|
build: ./web
|
2025-01-08 07:20:59 +08:00
|
|
|
env_file:
|
|
|
|
- .env
|
2025-01-07 23:32:15 +08:00
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
environment:
|
2025-01-08 06:35:18 +08:00
|
|
|
- NODE_ENV=production
|
2025-01-07 23:32:15 +08:00
|
|
|
depends_on:
|
|
|
|
- api
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db_data:
|