2021-08-07 12:39:17 +00:00
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
container_name: postgres
|
|
|
|
image: postgres:latest
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
|
|
- POSTGRES_PASSWORD=${POSTGRES_PW}
|
2022-09-19 15:58:54 +00:00
|
|
|
- POSTGRES_DB=${POSTGRES_DB} #optional (specify default database instead of $POSTGRES_DB)
|
2021-08-07 12:39:17 +00:00
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
pgadmin:
|
|
|
|
container_name: pgadmin
|
|
|
|
image: dpage/pgadmin4:latest
|
|
|
|
environment:
|
|
|
|
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_MAIL}
|
|
|
|
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PW}
|
|
|
|
ports:
|
|
|
|
- "5050:80"
|
|
|
|
restart: always
|