Created
January 8, 2023 14:34
-
-
Save Konstantin-Dudersky/f6a73fb9175de9913c3655faf6ff14b1 to your computer and use it in GitHub Desktop.
PostgreSQL + pgadmin
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
services: | |
db: | |
image: postgres | |
container_name: pgbook_postgres | |
environment: | |
- POSTGRES_USER=postgres | |
- POSTGRES_PASSWORD=postgres | |
ports: | |
- 5432:5432 | |
volumes: | |
- pgbook_data:/var/lib/postgresql/data | |
pgadmin: | |
image: dpage/pgadmin4 | |
container_name: pgbook_pgadmin | |
environment: | |
- PGADMIN_DEFAULT_EMAIL=test@mail.com | |
- PGADMIN_DEFAULT_PASSWORD=123 | |
ports: | |
- 8000:80 | |
volumes: | |
- pgbook_pgadmin_data:/var/lib/pgadmin | |
volumes: | |
pgbook_data: | |
name: "pgbook_data" | |
pgbook_pgadmin_data: | |
name: "pgbook_pgadmin_data" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment