Skip to content

Instantly share code, notes, and snippets.

@culttm
Created November 2, 2021 13:43
Show Gist options
  • Save culttm/b5da9b4113ebc60c8265fb5417c2e860 to your computer and use it in GitHub Desktop.
Save culttm/b5da9b4113ebc60c8265fb5417c2e860 to your computer and use it in GitHub Desktop.
version: '3.6'
services:
postgres:
image: postgres:12
restart: always
ports:
- "5432:5432"
volumes:
- ./db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
POSTGRES_DB: crd
networks:
- postgres
pgadmin:
links:
- postgres:postgres
container_name: pgadmin
image: dpage/pgadmin4
restart: always
ports:
- "8080:80"
volumes:
- ./db_data/pgadmin:/root/.pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
depends_on:
- "postgres"
networks:
- postgres
networks:
postgres:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment