Skip to content

Commit 7d3e347

Browse files
committed
added pgAdmin instance
1 parent 086be8d commit 7d3e347

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

docker-compose.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ version: '3.7'
22
services:
33
postgres:
44
image: postgres:10.5
5+
container_name: postgres
56
restart: always
67
environment:
7-
- POSTGRES_USER=postgres
8-
- POSTGRES_PASSWORD=postgres
8+
POSTGRES_USER: postgres
9+
POSTGRES_PASSWORD: postgres
910
logging:
1011
options:
1112
max-size: 10m
@@ -18,3 +19,13 @@ services:
1819
- ./sql/create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql
1920
# copy the sql script to fill tables
2021
- ./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'

0 commit comments

Comments
 (0)