Last active
May 29, 2025 03:45
-
-
Save Klerith/7bc972b4e1d717e75951ccb771e12c4d to your computer and use it in GitHub Desktop.
PostgreSQL + PgAdmin
This file contains hidden or 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
En Ubuntu pude solucionar el no poder acceder PgAdmin agregando
user: '$UID:$GID'
en la parte de pdAdmin en docker compose y quedo asi