Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.1'
- services:
- db:
- image: postgres
- restart: always
- environment:
- POSTGRES_PASSWORD: example
- ports:
- - 5432:5432
- volumes:
- - ./db/data:/var/lib/postgresql
- - ./db/socket:/var/run/postgresql
- pgadmin:
- image: dpage/pgadmin4
- restart: always
- ports:
- - 8080:80
- depends_on:
- - db
- environment:
- PGADMIN_DEFAULT_EMAIL: admin@admin.com
- PGADMIN_DEFAULT_PASSWORD: admin
- volumes:
- - ./db/pgadmin:/var/lib/pgadmin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement