Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- postgres:
- build: ./
- environment:
- POSTGRES_USER: user
- POSTGRES_PASSWORD: password
- POSTGRES_DB: default
- ports:
- - "5432:5432"
- networks:
- - postgres
- volumes:
- - pgdata:/var/lib/postgresql/data
- restart: unless-stopped
- pgadmin:
- links:
- - postgres:postgres
- image: dpage/pgadmin4
- environment:
- PGADMIN_DEFAULT_EMAIL: your.email@mail.com
- PGADMIN_DEFAULT_PASSWORD: password
- ports:
- - "8080:80"
- networks:
- - postgres
- restart: unless-stopped
- networks:
- postgres:
- driver: bridge
- volumes:
- pgdata:
Add Comment
Please, Sign In to add comment