File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ version : ' 3.8'
2+
3+ services :
4+ web :
5+ build : .
6+ image : zclonic-app:latest
7+ container_name : zclonic_web
8+ ports :
9+ - " 5000:5000"
10+ environment :
11+ - FLASK_ENV=development
12+ - PYTHONUNBUFFERED=1
13+ - FLASK_APP=app.py
14+ - DATABASE_URL=postgresql://zclonic:changeme@db:5432/zclonic_db
15+ - SQLALCHEMY_DATABASE_URI=postgresql://zclonic:changeme@db:5432/zclonic_db
16+ - CONFIG_MODULE=/app/config.py
17+ volumes :
18+ - ./:/app:rw
19+ - ./venv:/app/venv:ro
20+ - ./config.py:/app/config.py:ro
21+ depends_on :
22+ - db
23+ restart : unless-stopped
24+ healthcheck :
25+ test : ["CMD-SHELL", "curl -f http://localhost:5000/ || exit 1"]
26+ interval : 30s
27+ timeout : 10s
28+ retries : 3
29+
30+ # Optional: a tiny static reverse-proxy for production testing (disabled by default)
31+ nginx :
32+ image : nginx:stable-alpine
33+ container_name : zclonic_nginx
34+ ports :
35+ - " 8080:80"
36+ volumes :
37+ - ./deploy/nginx.conf:/etc/nginx/conf.d/default.conf:ro
38+ depends_on :
39+ - web
40+ restart : unless-stopped
41+
42+ volumes :
43+ dbdata : {}
44+ pgdata :
45+ driver : local
46+
47+ networks :
48+ default :
49+ name : zclonic_network
You can’t perform that action at this time.
0 commit comments