Created
March 10, 2021 20:04
-
-
Save wschenk/79cb0f1756d1618a7031046f920cfe22 to your computer and use it in GitHub Desktop.
docker-compose for postgres and pgadmin
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.7" | |
services: | |
postgres: | |
image: postgres:13.1 | |
environment: | |
POSTGRES_PASSWORD: awesome_password | |
ports: | |
- "5432:5432" | |
volumes: | |
- postgres:/var/lib/postgresql/data | |
pgadmin: | |
image: dpage/pgadmin4:5.0 | |
environment: | |
PGADMIN_DEFAULT_EMAIL: [email protected] | |
PGADMIN_DEFAULT_PASSWORD: SuperSecret | |
GUNICORN_ACCESS_LOGFILE: /dev/null | |
ports: | |
- "4000:80" | |
depends_on: | |
- postgres | |
volumes: | |
- pgadmin:/var/lib/pgadmin | |
volumes: | |
postgres: | |
pgadmin: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment