Skip to content

Instantly share code, notes, and snippets.

@Klerith
Created May 18, 2024 15:35
Show Gist options
  • Save Klerith/0708124a4470aa4721827607effc684a to your computer and use it in GitHub Desktop.
Save Klerith/0708124a4470aa4721827607effc684a to your computer and use it in GitHub Desktop.
PostgreSQL & PgAdmin
services:
db:
container_name: postgres_database
image: postgres:16.3
volumes:
- ./postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=123456
restart: always
ports:
- "5432:5432"
pgAdmin:
depends_on:
- db
image: dpage/pgadmin4:8.6
volumes:
- ./pgadmin:/var/lib/pgadmin
ports:
- "8080:80"
environment:
- PGADMIN_DEFAULT_PASSWORD=123456
- [email protected]
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment