Skip to content

Instantly share code, notes, and snippets.

@luizfranzon
Created March 12, 2024 19:16
Show Gist options
  • Save luizfranzon/311383834220f7dd3ef9694ebe3b1a7b to your computer and use it in GitHub Desktop.
Save luizfranzon/311383834220f7dd3ef9694ebe3b1a7b to your computer and use it in GitHub Desktop.
postgres + pgadmin docker compose
version: "3.8"
services:
db:
container_name: postgres_database
image: postgres:latest
restart: always
environment:
POSTGRES_USER: USER
POSTGRES_PASSWORD: PASSWORD
POSTGRES_DB: postgresdb
ports:
- "5432:5432"
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: EMAIL
PGADMIN_DEFAULT_PASSWORD: PASSWORD
ports:
- "5050:80"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment