Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- postgres:
- image: postgres
- environment:
- POSTGRES_USER: postgres
- POSTGRES_PASSWORD: SuperSecret
- PGDATA: /data/postgres
- volumes:
- - pg_data:/data/postgres
- ports:
- - "5432:5432"
- networks:
- - pgdb
- restart: unless-stopped
- pgadmin:
- image: dpage/pgadmin4
- environment:
- - PGADMIN_DEFAULT_EMAIL=user@domain.com
- - PGADMIN_DEFAULT_PASSWORD=SuperSecret
- volumes:
- - pg_admin:/root/.pgadmin
- - pgadmin_data:/data
- ports:
- - "80:80"
- networks:
- - pgdb
- depends_on:
- - postgres
- restart: unless-stopped
- volumes:
- pg_data:
- pg_admin:
- pgadmin_data:
- networks:
- pgdb:
Add Comment
Please, Sign In to add comment