awesome-compose/postgresql-pgadmin/docker-compose.yaml
Anca Iordache 9e58d407d5
Use docker hub images and readmes updates (#190)
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-12-09 13:09:48 +01:00

22 lines
556 B
YAML

services:
postgres:
container_name: postgres
image: postgres:latest
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PW}
- POSTGRES_DB=${POSTGRES_DB} #optional (specify default database instead of $POSTGRES_USER)
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