-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (48 loc) · 1.43 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (48 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
services:
ai-cfo-api:
build:
context: .
dockerfile: Dockerfile # Explicitly specifies using the development Dockerfile
# To use Dockerfile.prod, you might have a separate service definition
# or use Docker Compose override files for a production environment.
# Example for a production-like service (illustrative, not active by default):
# ai-cfo-api-prod:
# build:
# context: .
# dockerfile: Dockerfile.prod
# ports:
# - "8001:8000" # Use a different host port if running alongside dev
# env_file:
# - .env
# restart: unless-stopped
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
# interval: 30s
# timeout: 10s
# retries: 3
# networks:
# - ai-cfo-network
ports:
- "8000:8000"
environment:
- GEMINI_API_KEY=${GEMINI_API_KEY}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- SUPABASE_URL=${SUPABASE_URL}
- SUPABASE_ANON_KEY=${SUPABASE_ANON_KEY}
env_file:
- .env
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"] # Updated to use /health
interval: 30s
timeout: 10s
retries: 3
volumes:
# Mount for development (comment out for production)
- ./src:/app/src
- ./api:/app/api
networks:
- ai-cfo-network
networks:
ai-cfo-network:
driver: bridge