Last active
October 16, 2019 17:15
-
-
Save josectheone/cbc5c0a1629ad3ed323cacd9117f2d6d to your computer and use it in GitHub Desktop.
PostgreSQL + pgAdmin 4
This file contains 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: | |
container_name: postgresql | |
image: postgres:10 | |
restart: always | |
environment: | |
POSTGRES_PASSWORD: "password" | |
ports: | |
- "15432:5432" | |
volumes: | |
- /var/lib/postgresql/data:/var/lib/postgresql/data | |
networks: | |
- postgres-network | |
pgadmin: | |
container_name: pgadmin4 | |
image: dpage/pgadmin4 | |
restart: always | |
environment: | |
PGADMIN_DEFAULT_EMAIL: "admin@mail.com" | |
PGADMIN_DEFAULT_PASSWORD: "password" | |
ports: | |
- "8080:80" | |
depends_on: | |
- postgres | |
networks: | |
- postgres-network | |
networks: | |
postgres-network: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment