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"
|
2025-05-08 00:00:36 +08:00
|
|
|
volumes:
|
|
|
|
- buster_redis_data:/data
|
2025-01-08 07:20:59 +08:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
|
|
interval: 1s
|
|
|
|
timeout: 3s
|
|
|
|
retries: 30
|
2025-01-07 23:32:15 +08:00
|
|
|
|
|
|
|
api:
|
2025-05-08 08:25:34 +08:00
|
|
|
image: ghcr.io/buster-so/buster/api:latest
|
2025-05-08 00:00:36 +08:00
|
|
|
container_name: buster-api
|
2025-01-08 07:20:59 +08:00
|
|
|
env_file:
|
|
|
|
- .env
|
2025-01-09 04:08:03 +08:00
|
|
|
environment:
|
|
|
|
- DATABASE_URL=${DATABASE_URL}
|
|
|
|
- REDIS_URL=${REDIS_URL}
|
|
|
|
- JWT_SECRET=${JWT_SECRET}
|
|
|
|
- SUPABASE_URL=${SUPABASE_URL}
|
|
|
|
- SUPABASE_SERVICE_ROLE_KEY=${SUPABASE_SERVICE_ROLE_KEY}
|
|
|
|
- POOLER_URL=${POOLER_URL}
|
|
|
|
- BUSTER_URL=${BUSTER_URL}
|
|
|
|
- BUSTER_WH_TOKEN=${BUSTER_WH_TOKEN}
|
|
|
|
- EMBEDDING_PROVIDER=${EMBEDDING_PROVIDER}
|
|
|
|
- EMBEDDING_MODEL=${EMBEDDING_MODEL}
|
|
|
|
- COHERE_API_KEY=${COHERE_API_KEY}
|
2025-05-08 08:13:56 +08:00
|
|
|
- ENVIRONMENT=${ENVIRONMENT}
|
2025-01-07 23:32:15 +08:00
|
|
|
ports:
|
|
|
|
- "3001:3001"
|
2025-05-08 06:13:57 +08:00
|
|
|
- "3000:3000"
|
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
|
2025-05-08 00:00:36 +08:00
|
|
|
supavisor:
|
|
|
|
condition: service_healthy
|
|
|
|
kong:
|
2025-01-08 07:20:59 +08:00
|
|
|
condition: service_healthy
|
2025-05-08 06:13:57 +08:00
|
|
|
|
2025-01-07 23:32:15 +08:00
|
|
|
web:
|
2025-05-08 08:25:34 +08:00
|
|
|
image: ghcr.io/buster-so/buster/web:latest
|
2025-05-08 00:00:36 +08:00
|
|
|
container_name: buster-web
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
depends_on:
|
2025-05-08 06:13:57 +08:00
|
|
|
api:
|
2025-05-08 00:00:36 +08:00
|
|
|
condition: service_healthy
|
2025-05-08 06:13:57 +08:00
|
|
|
network_mode: "service:api"
|
2025-01-07 23:32:15 +08:00
|
|
|
|
2025-05-08 13:34:59 +08:00
|
|
|
litellm:
|
|
|
|
image: ghcr.io/berriai/litellm:main-latest
|
|
|
|
container_name: buster-litellm
|
|
|
|
ports:
|
|
|
|
- "4001:4001"
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:4001/health/readiness"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
|
|
|
depends_on:
|
|
|
|
api:
|
|
|
|
condition: service_healthy
|
|
|
|
|
2025-01-07 23:32:15 +08:00
|
|
|
volumes:
|
2025-05-08 00:00:36 +08:00
|
|
|
buster_redis_data:
|