-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
57 lines (54 loc) · 1.35 KB
/
docker-compose.prod.yml
File metadata and controls
57 lines (54 loc) · 1.35 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
56
57
version: '3.8'
services:
backend:
build:
context: ./admin_panel/backend
dockerfile: Dockerfile
environment:
- PRODUCTION=true
- API_HOST=0.0.0.0
- API_PORT=8000
env_file:
- .env.production
volumes:
- ./order_tracking.db:/opt/email-client-cli/order_tracking.db
- ./logs:/opt/email-client-cli/logs
- ./resources:/opt/email-client-cli/resources:ro
ports:
- "8000:8000"
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
frontend:
build:
context: ./admin_panel/frontend
dockerfile: Dockerfile
args:
- VITE_API_URL=${FRONTEND_API_URL:-http://localhost:8000}
ports:
- "80:80"
restart: unless-stopped
depends_on:
- backend
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
email-processor:
build:
context: .
dockerfile: Dockerfile
env_file:
- .env.production
volumes:
- ./order_tracking.db:/opt/email-client-cli/order_tracking.db
- ./logs:/opt/email-client-cli/logs
- ./resources:/opt/email-client-cli/resources:ro
restart: unless-stopped
depends_on:
- backend