Skip to content

Instantly share code, notes, and snippets.

@wschenk
Created March 10, 2021 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wschenk/79cb0f1756d1618a7031046f920cfe22 to your computer and use it in GitHub Desktop.
Save wschenk/79cb0f1756d1618a7031046f920cfe22 to your computer and use it in GitHub Desktop.
docker-compose for postgres and pgadmin
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: admin@example.com
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