-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (36 loc) · 981 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (36 loc) · 981 Bytes
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
services:
nginx:
build:
context: .
dockerfile: nginx/Dockerfile
image: droidify-nginx:latest
container_name: droidify-nginx
restart: unless-stopped
ports:
- "80:80"
depends_on:
backend:
condition: service_healthy
backend:
build:
context: backend
dockerfile: Dockerfile
args:
BUILDTIME: ${BUILDTIME:-}
image: droidify-backend:latest
container_name: droidify-backend
restart: unless-stopped
expose:
- "8000"
environment:
- PORT=8000
- CORS_ORIGINS=*
- SCRAPER_TIMEOUT=20
- CACHE_DEFAULT_TTL=300
# GitHub repo secret → passed through deploy workflow → container runtime.
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request,os; urllib.request.urlopen('http://localhost:'+os.environ.get('PORT','8000')+'/api/health',timeout=8)"]
interval: 30s
timeout: 10s
start_period: 120s
retries: 5