Created
March 12, 2024 19:16
-
-
Save luizfranzon/311383834220f7dd3ef9694ebe3b1a7b to your computer and use it in GitHub Desktop.
postgres + pgadmin docker compose
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.8" | |
services: | |
db: | |
container_name: postgres_database | |
image: postgres:latest | |
restart: always | |
environment: | |
POSTGRES_USER: USER | |
POSTGRES_PASSWORD: PASSWORD | |
POSTGRES_DB: postgresdb | |
ports: | |
- "5432:5432" | |
pgadmin: | |
container_name: pgadmin4_container | |
image: dpage/pgadmin4 | |
restart: always | |
environment: | |
PGADMIN_DEFAULT_EMAIL: EMAIL | |
PGADMIN_DEFAULT_PASSWORD: PASSWORD | |
ports: | |
- "5050:80" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment