File tree Expand file tree Collapse file tree 2 files changed +8
-18
lines changed
Expand file tree Collapse file tree 2 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -27,20 +27,15 @@ nginx:
2727postgres :
2828 restart : always
2929 image : postgres:latest
30- volumes_from :
31- - data
3230 ports :
3331 - " 5432:5432"
32+ volumes :
33+ - pgdata:/var/lib/postgresql/data/
3434
3535redis :
3636 restart : always
3737 image : redis:latest
3838 ports :
3939 - " 6379:6379"
40-
41- data :
42- restart : always
43- image : postgres:latest
4440 volumes :
45- - /var/lib/postgresql
46- command : " true"
41+ - redisdata:/data
Original file line number Diff line number Diff line change @@ -24,20 +24,15 @@ nginx:
2424postgres :
2525 restart : always
2626 image : postgres:latest
27- volumes_from :
28- - data
2927 ports :
30- - " 5432:5432"
28+ - " 5432"
29+ volumes :
30+ - pgdata:/var/lib/postgresql/data/
3131
3232redis :
3333 restart : always
3434 image : redis:latest
3535 ports :
36- - " 6379:6379"
37-
38- data :
39- restart : always
40- image : postgres:latest
36+ - " 6379"
4137 volumes :
42- - /var/lib/postgresql
43- command : " true"
38+ - redisdata:/data
You can’t perform that action at this time.
0 commit comments