Skip to content

Instantly share code, notes, and snippets.

@saurabhariyan
Created May 13, 2024 06:19
Show Gist options
  • Save saurabhariyan/d06ed4df6f3cf24b81a2f5a6fce9ab42 to your computer and use it in GitHub Desktop.
Save saurabhariyan/d06ed4df6f3cf24b81a2f5a6fce9ab42 to your computer and use it in GitHub Desktop.
Local Dev Setup
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