Created
June 2, 2024 11:36
-
-
Save musleh0001/418f996ab4462270681e76232cab1808 to your computer and use it in GitHub Desktop.
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:latest | |
container_name: db | |
restart: always | |
environment: | |
- POSTGRES_USER=postgres | |
- POSTGRES_PASSWORD=postgres | |
- POSTGRES_DB=postgres | |
ports: | |
- 5432:5432 | |
volumes: | |
- db_data:/var/lib/postgresql/data | |
db_editor: | |
image: dpage/pgadmin4:latest | |
container_name: db_editor | |
environment: | |
- PGADMIN_DEFAULT_EMAIL=admin@gmail.com | |
- PGADMIN_DEFAULT_PASSWORD=mypasswd | |
ports: | |
- 5050:80 | |
depends_on: | |
- db | |
volumes: | |
db_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment