Created
May 14, 2021 01:27
-
-
Save Hfreitas/d4686e68b43dd06fbd58eee1662b50e8 to your computer and use it in GitHub Desktop.
Postgres e pgadmin container para desenvolvimento
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: | |
videoaulas_db: | |
image: postgres:13-alpine | |
environment: | |
POSTGRES_DB: ${DATABASE_NAME} | |
POSTGRES_USER: ${DATABASE_USERNAME} | |
POSTGRES_PASSWORD: ${DATABASE_PASSWORD} | |
ports: | |
- "5432:5432" | |
volumes: | |
- ./data:/var/lib/postgresql/data | |
networks: | |
- postgres-compose-network | |
videoaulas_pgadmin: | |
image: dpage/pgadmin4 | |
environment: | |
PGADMIN_DEFAULT_EMAIL: "[email protected]" | |
PGADMIN_DEFAULT_PASSWORD: "user1234" | |
ports: | |
- "80:80" | |
depends_on: | |
- videoaulas_db | |
networks: | |
- postgres-compose-network | |
networks: | |
postgres-compose-network: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment