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:
27
27
postgres :
28
28
restart : always
29
29
image : postgres:latest
30
- volumes_from :
31
- - data
32
30
ports :
33
31
- " 5432:5432"
32
+ volumes :
33
+ - pgdata:/var/lib/postgresql/data/
34
34
35
35
redis :
36
36
restart : always
37
37
image : redis:latest
38
38
ports :
39
39
- " 6379:6379"
40
-
41
- data :
42
- restart : always
43
- image : postgres:latest
44
40
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:
24
24
postgres :
25
25
restart : always
26
26
image : postgres:latest
27
- volumes_from :
28
- - data
29
27
ports :
30
- - " 5432:5432"
28
+ - " 5432"
29
+ volumes :
30
+ - pgdata:/var/lib/postgresql/data/
31
31
32
32
redis :
33
33
restart : always
34
34
image : redis:latest
35
35
ports :
36
- - " 6379:6379"
37
-
38
- data :
39
- restart : always
40
- image : postgres:latest
36
+ - " 6379"
41
37
volumes :
42
- - /var/lib/postgresql
43
- command : " true"
38
+ - redisdata:/data
You can’t perform that action at this time.
0 commit comments