File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ data /
Original file line number Diff line number Diff line change 1+ # Docker Compose for Production Deployment
2+ # Full stack: app, worker, and Redis
3+
4+ x-volumes : &volumes
5+ - ${GDL_APP_CONFIG:-./config}:/config:ro
6+ - ${GDL_APP_DATA:-./data}:/data
7+ - ${GDL_APP_DOWNLOADS:-./downloads}:/downloads
8+
9+ x-gdl-env : &g-dl-env
10+ - GALLERY_DL_CONFIG=/config/gallery-dl.conf
11+ - GALLERY_DL_APP_DOWNLOADS=/downloads
12+ - GALLERY_DL_APP_DATABASE=/data/gallery-dl-app.db
13+
14+ name : gdlapp
15+
16+ services :
17+ redis :
18+ image : redis:7-alpine
19+ volumes :
20+ - redis-data:/data
21+ command : redis-server --appendonly yes
22+ restart : unless-stopped
23+ healthcheck :
24+ test : ["CMD", "redis-cli", "ping"]
25+ interval : 10s
26+ timeout : 5s
27+ retries : 3
28+ networks :
29+ - gallery-dl-network
30+
31+ web :
32+ image : ghcr.io/offbyone/gallery-dl-app:latest
33+ container_name : gallery-dl-web
34+ ports :
35+ - " 34100:8000"
36+ environment :
37+ - REDIS_URL=redis://redis:6379/0
38+ - *g-dl-env
39+ volumes : *volumes
40+ depends_on :
41+ redis :
42+ condition : service_healthy
43+ restart : unless-stopped
44+ networks :
45+ - gallery-dl-network
46+ command : uvicorn gallery_dl_app.app:app --host 0.0.0.0 --port 8000
47+
48+ worker :
49+ image : ghcr.io/offbyone/gallery-dl-app:latest
50+ container_name : gallery-dl-worker
51+ environment :
52+ - REDIS_URL=redis://redis:6379/0
53+ - *g-dl-env
54+ volumes : *volumes
55+ depends_on :
56+ redis :
57+ condition : service_healthy
58+ restart : unless-stopped
59+ networks :
60+ - gallery-dl-network
61+ command : python -m gallery_dl_app.worker
62+
63+ networks :
64+ gallery-dl-network :
65+ driver : bridge
66+
67+ volumes :
68+ redis-data :
You can’t perform that action at this time.
0 commit comments