-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
55 lines (52 loc) · 1.53 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
55 lines (52 loc) · 1.53 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
50
51
52
53
54
55
version: "3.9"
services:
# Backend API
api:
build:
context: ./backend
dockerfile: Dockerfile
container_name: buildflow-api
restart: unless-stopped
ports:
- "8001:8001"
environment:
- ENV=${ENV:-production}
- JWT_SECRET=${JWT_SECRET}
- JWT_ALGORITHM=${JWT_ALGORITHM:-HS256}
- ACCESS_TOKEN_EXPIRE_MINUTES=${ACCESS_TOKEN_EXPIRE_MINUTES:-60}
- REFRESH_TOKEN_EXPIRE_DAYS=${REFRESH_TOKEN_EXPIRE_DAYS:-7}
- COSMOS_ENDPOINT=${COSMOS_ENDPOINT}
- COSMOS_KEY=${COSMOS_KEY}
- COSMOS_DATABASE=${COSMOS_DATABASE:-buildflow}
- GITHUB_TOKEN=${GITHUB_TOKEN:-}
- AZURE_OPENAI_ENDPOINT=${AZURE_OPENAI_ENDPOINT:-}
- AZURE_OPENAI_KEY=${AZURE_OPENAI_KEY:-}
- AZURE_OPENAI_DEPLOYMENT=${AZURE_OPENAI_DEPLOYMENT:-}
- CORS_ORIGINS=${CORS_ORIGINS:-http://localhost:3000,http://localhost:5173}
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8001/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- buildflow-network
# Frontend (Nginx serving static files)
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
container_name: buildflow-frontend
restart: unless-stopped
ports:
- "80:80"
- "443:443"
environment:
- VITE_API_URL=${VITE_API_URL:-http://api:8001}
depends_on:
- api
networks:
- buildflow-network
networks:
buildflow-network:
driver: bridge