Last active
January 30, 2020 17:03
-
-
Save duducp/a0ad3ceb89200e9b37a7501f347c458e to your computer and use it in GitHub Desktop.
Docker Compose for pgAdmin
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' | |
services: | |
postgres-compose: | |
image: postgres | |
environment: | |
POSTGRES_USERNAME: "postgres" | |
POSTGRES_PASSWORD: "postgres" | |
ports: | |
- "5432:5432" | |
volumes: | |
- /home/duducp/PostgreSQL:/var/lib/postgresql/data | |
networks: | |
- postgres-compose-network | |
pgadmin-compose: | |
image: dpage/pgadmin4 | |
environment: | |
PGADMIN_DEFAULT_EMAIL: "[email protected]" | |
PGADMIN_DEFAULT_PASSWORD: "postgres" | |
ports: | |
- "15432:80" | |
depends_on: | |
- postgres-compose | |
networks: | |
- postgres-compose-network | |
networks: | |
postgres-compose-network: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment