Skip to content

Instantly share code, notes, and snippets.

@urtaav
Created September 19, 2023 23:26
Show Gist options
  • Save urtaav/e9603dc477f24dbdaa2a1c30917a75b3 to your computer and use it in GitHub Desktop.
Save urtaav/e9603dc477f24dbdaa2a1c30917a75b3 to your computer and use it in GitHub Desktop.
ejemplo curso docker
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