Last active
March 22, 2020 00:16
-
-
Save amiry-jd/a9036801b2f3fe0e86b6278fb4177f94 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.5' | |
services: | |
postgres: | |
container_name: postgres_dock | |
image: postgres:12 | |
environment: | |
POSTGRES_USER: ${POSTGRES_USER:-postgres} | |
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-PG_PASSWORD_HERE} | |
PGDATA: /data/postgres | |
volumes: | |
- ./data/postgres/:/data/postgres | |
ports: | |
- "5432:5432" | |
networks: | |
- pgnet | |
restart: unless-stopped | |
pgadmin: | |
container_name: pgadmin_dock | |
image: dpage/pgadmin4 | |
environment: | |
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-EMAIL_HERE} | |
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-PASSWORD_HERE} | |
volumes: | |
- ./data/pgadmin/:/root/.pgadmin | |
ports: | |
- "${PGADMIN_PORT:-5050}:80" | |
networks: | |
- pgnet | |
restart: unless-stopped | |
networks: | |
pgnet: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment