Skip to content

Commit 8883063

Browse files
committed
Update: Add pgadmin to docker-compose
1 parent e75a75f commit 8883063

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

bootcamp/materials/1-dimensional-data-modeling/docker-compose.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ services:
1717
- ./data.dump:/docker-entrypoint-initdb.d/data.dump
1818
- ./scripts/init-db.sh:/docker-entrypoint-initdb.d/init-db.sh
1919
- postgres-data:/var/lib/postgresql/data
20-
20+
pgadmin:
21+
image: dpage/pgadmin4
22+
restart: on-failure
23+
container_name: pgadmin
24+
environment:
25+
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_EMAIL}
26+
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PASSWORD}
27+
ports:
28+
- "${PGADMIN_PORT}:80"
29+
volumes:
30+
- pgadmin-data:/var/lib/pgadmin
2131
volumes:
2232
postgres-data:
33+
pgadmin-data:

bootcamp/materials/1-dimensional-data-modeling/example.env

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ HOST_PORT=5432
77
CONTAINER_PORT=5432
88

99
DOCKER_CONTAINER=my-postgres-container
10-
DOCKER_IMAGE=my-postgres-image
10+
DOCKER_IMAGE=my-postgres-image
11+
12+
PGADMIN_EMAIL=[email protected]
13+
PGADMIN_PASSWORD=postgres
14+
PGADMIN_PORT=5050

0 commit comments

Comments
 (0)