Created
September 19, 2023 23:26
-
-
Save urtaav/e9603dc477f24dbdaa2a1c30917a75b3 to your computer and use it in GitHub Desktop.
ejemplo curso docker
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: | |
db: | |
container_name: postgres_database | |
image: postgres:15.1 | |
volumes: | |
- ./postgres:/var/lib/postgresql/data | |
environment: | |
- POSTGRES_PASSWORD=123456 | |
pgAdmin: | |
depends_on: | |
- db | |
image: dpage/pgadmin4:6.17 | |
ports: | |
- "8080:80" | |
volumes: | |
- ./pgadmin:/var/lib/pgadmin | |
environment: | |
- PGADMIN_DEFAULT_PASSWORD=123456 | |
- [email protected] | |
volumes: | |
postgres-db: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment