Skip to content

Instantly share code, notes, and snippets.

@tonykevin
Forked from Klerith/docker-compose.yml
Created October 4, 2024 15:50
Show Gist options
  • Save tonykevin/807eaecd7acff55679f535abbb911c30 to your computer and use it in GitHub Desktop.
Save tonykevin/807eaecd7acff55679f535abbb911c30 to your computer and use it in GitHub Desktop.
PostgreSQL + PgAdmin
version: '3'
services:
myDB:
image: postgres:15.3
container_name: my-database
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_USER=alumno
- POSTGRES_PASSWORD=123456
- POSTGRES_DB=course-db
volumes:
- ./postgres:/var/lib/postgresql/data
pdAdmin:
image: dpage/pgadmin4
container_name: pgadmin4
restart: always
depends_on:
- myDB
ports:
- 8080:80
environment:
- [email protected]
- PGADMIN_DEFAULT_PASSWORD=123456
volumes:
- ./pgadmin:/var/lib/pgadmin
- ./pgadmin:/certs/server.cert
- ./pgadmin:/certs/server.key
- ./pgadmin:/pgadmin4/servers.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment