Created
May 13, 2024 06:19
-
-
Save saurabhariyan/d06ed4df6f3cf24b81a2f5a6fce9ab42 to your computer and use it in GitHub Desktop.
Local Dev Setup
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: | |
postgres: | |
container_name: container-pg | |
image: postgres | |
hostname: localhost | |
ports: | |
- "5432:5432" | |
environment: | |
POSTGRES_USER: admin | |
POSTGRES_PASSWORD: root | |
POSTGRES_DB: test_db | |
volumes: | |
- postgres-data:/var/lib/postgresql/data | |
restart: unless-stopped | |
pgadmin: | |
container_name: container-pgadmin | |
image: dpage/pgadmin4 | |
depends_on: | |
- postgres | |
ports: | |
- "5050:80" | |
environment: | |
PGADMIN_DEFAULT_EMAIL: admin@admin.com | |
PGADMIN_DEFAULT_PASSWORD: root | |
restart: unless-stopped | |
volumes: | |
postgres-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment