File tree Expand file tree Collapse file tree 1 file changed +41
-34
lines changed
Expand file tree Collapse file tree 1 file changed +41
-34
lines changed Original file line number Diff line number Diff line change 1- web :
2- restart : always
3- build : ./web
4- expose :
5- - " 8000"
6- links :
7- - postgres:postgres
8- volumes :
9- - /usr/src/app/static
10- env_file : .env
11- command : /usr/local/bin/gunicorn -w 2 -b :8000 app:app
1+ version : ' 3'
122
13- nginx :
14- restart : always
15- build : ./nginx/
16- ports :
17- - " 80:80"
18- volumes :
19- - /www/static
20- volumes_from :
21- - web
22- links :
23- - web:web
3+ services :
4+ web :
5+ restart : always
6+ build : ./web
7+ expose :
8+ - " 8000"
9+ links :
10+ - postgres:postgres
11+ volumes :
12+ - web-data:/usr/src/app/static
13+ env_file :
14+ - .env
15+ command : /usr/local/bin/gunicorn -w 2 -b :8000 app:app
2416
25- data :
26- image : postgres:latest
27- volumes :
28- - /var/lib/postgresql
29- command : " true"
17+ nginx :
18+ restart : always
19+ build : ./nginx
20+ ports :
21+ - " 80:80"
22+ volumes :
23+ - .:/www/static
24+ - web-data:/usr/src/app/static
25+ links :
26+ - web:web
3027
31- postgres :
32- restart : always
33- image : postgres:latest
34- volumes_from :
35- - data
36- ports :
37- - " 5432:5432"
28+ data :
29+ image : postgres:latest
30+ volumes :
31+ - db-data:/var/lib/postgresql/data
32+ command : " true"
33+
34+ postgres :
35+ restart : always
36+ image : postgres:latest
37+ volumes :
38+ - db-data:/var/lib/postgresql/data
39+ ports :
40+ - " 5432:5432"
41+
42+ volumes :
43+ db-data :
44+ web-data :
You can’t perform that action at this time.
0 commit comments