-
-
Save acenelio/5e40b27cfc40151e36beec1e27c4ff71 to your computer and use it in GitHub Desktop.
Script para subir containers Postgresql 12 e pgAdmin 4
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.7" | |
services: | |
# ==================================================================================================================== | |
# POSTGRES SERVER | |
# ==================================================================================================================== | |
pg-docker: | |
image: postgres:14-alpine | |
container_name: dev-postgresql | |
environment: | |
POSTGRES_DB: mydatabase | |
POSTGRES_PASSWORD: 1234567 | |
ports: | |
- 5433:5432 | |
volumes: | |
- ./.data/postgresql/data:/var/lib/postgresql/data | |
networks: | |
- dev-network | |
# ==================================================================================================================== | |
# PGADMIN | |
# ==================================================================================================================== | |
pgadmin-docker: | |
image: dpage/pgadmin4 | |
container_name: dev-pgadmin | |
environment: | |
PGADMIN_DEFAULT_EMAIL: me@example.com | |
PGADMIN_DEFAULT_PASSWORD: 1234567 | |
ports: | |
- 5050:80 | |
volumes: | |
- ./.data/pgadmin:/var/lib/pgadmin | |
depends_on: | |
- pg-docker | |
networks: | |
- dev-network | |
# ====================================================================================================================== | |
# REDE | |
# ====================================================================================================================== | |
networks: | |
dev-network: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment