Skip to content

Instantly share code, notes, and snippets.

@HenriqueSilverio
Last active March 5, 2023 02:22
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 HenriqueSilverio/eabad651a9fce5d5a2f962e783672095 to your computer and use it in GitHub Desktop.
Save HenriqueSilverio/eabad651a9fce5d5a2f962e783672095 to your computer and use it in GitHub Desktop.
PostgreSQL and pgAdmin (Docker Compose).
version: "3.8"
services:
postgres:
image: postgres:15.2-alpine
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: secret
ports:
- 5432:5432
pgadmin:
depends_on:
- postgres
image: dpage/pgadmin4:6.20
environment:
PGADMIN_DEFAULT_EMAIL: admin@host.com
PGADMIN_DEFAULT_PASSWORD: secret
ports:
- 5480:80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment