File tree 5 files changed +19
-1
lines changed
5 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ services:
16
16
condition : on-failure
17
17
db :
18
18
image : postgres:9.4
19
+ environment :
20
+ POSTGRES_USER : " postgres"
21
+ POSTGRES_PASSWORD : " postgres"
19
22
volumes :
20
23
- db-data:/var/lib/postgresql/data
21
24
networks :
@@ -78,4 +81,4 @@ networks:
78
81
backend :
79
82
80
83
volumes :
81
- db-data:
84
+ db-data :
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ services:
14
14
condition : on-failure
15
15
db :
16
16
image : postgres:9.4
17
+ environment :
18
+ POSTGRES_USER : " postgres"
19
+ POSTGRES_PASSWORD : " postgres"
17
20
volumes :
18
21
- db-data:/var/lib/postgresql/data
19
22
networks :
Original file line number Diff line number Diff line change 18
18
containers :
19
19
- image : postgres:9.4
20
20
name : postgres
21
+ env :
22
+ - name : POSTGRES_USER
23
+ value : postgres
24
+ - name : POSTGRES_PASSWORD
25
+ value : postgres
21
26
ports :
22
27
- containerPort : 5432
23
28
name : postgres
Original file line number Diff line number Diff line change 77
77
env :
78
78
- name : PGDATA
79
79
value : /var/lib/postgresql/data/pgdata
80
+ - name : POSTGRES_USER
81
+ value : postgres
82
+ - name : POSTGRES_PASSWORD
83
+ value : postgres
80
84
ports :
81
85
- containerPort : 5432
82
86
name : db
Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ services:
47
47
48
48
db :
49
49
image : postgres:9.4
50
+ environment :
51
+ POSTGRES_USER : " postgres"
52
+ POSTGRES_PASSWORD : " postgres"
50
53
volumes :
51
54
- " db-data:/var/lib/postgresql/data"
52
55
networks :
You can’t perform that action at this time.
0 commit comments