Skip to content

Instantly share code, notes, and snippets.

@wardbeyens
Forked from sgyyz/docker-compose.yml
Created May 11, 2021 15:51
Show Gist options
  • Save wardbeyens/c4f95a5c47fc8f0c461ee80c93e01f60 to your computer and use it in GitHub Desktop.
Save wardbeyens/c4f95a5c47fc8f0c461ee80c93e01f60 to your computer and use it in GitHub Desktop.
Postgres & PgAdmin docker-compose.yml
version: '3'
services:
postgres:
image: postgres
ports:
- "5432:5432"
volumes:
- pg-dataset:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD:
pgadmin:
image: dpage/pgadmin4
depends_on:
- postgres
ports:
- "53603:53603"
- "80:80"
environment:
PGADMIN_DEFAULT_EMAIL: admin@example.com
PGADMIN_DEFAULT_PASSWORD: root
volumes:
pg-dataset:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment