File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,11 @@ version: '3.7'
2
2
services :
3
3
postgres :
4
4
image : postgres:10.5
5
+ container_name : postgres
5
6
restart : always
6
7
environment :
7
- - POSTGRES_USER= postgres
8
- - POSTGRES_PASSWORD= postgres
8
+ POSTGRES_USER : postgres
9
+ POSTGRES_PASSWORD : postgres
9
10
logging :
10
11
options :
11
12
max-size : 10m
@@ -18,3 +19,13 @@ services:
18
19
- ./sql/create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql
19
20
# copy the sql script to fill tables
20
21
- ./sql/fill_tables.sql:/docker-entrypoint-initdb.d/fill_tables.sql
22
+ # pgAdmin instance
23
+ pgadmin :
24
+ image : dpage/pgadmin4
25
+ container_name : pgadmin4
26
+ restart : always
27
+ environment :
28
+ PGADMIN_DEFAULT_EMAIL :
[email protected]
29
+ PGADMIN_DEFAULT_PASSWORD : root
30
+ ports :
31
+ - ' 5050:80'
You can’t perform that action at this time.
0 commit comments