-
-
Save felipejoq/c0851f32864b9541c337b4a69859192b to your computer and use it in GitHub Desktop.
PostgreSQL + PgAdmin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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