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: changeme
- PGDATA: /data/postgres
- volumes:
- - pgdata:/data/postgres
- ports:
- - "5432:5432"
- networks:
- - postgres
- restart: unless-stopped
- pgadmin:
- links:
- - postgres:postgres
- image: fenglc/pgadmin4
- volumes:
- - pgadmin:/root/.pgadmin
- ports:
- - "5050:5050"
- networks:
- - postgres
- restart: unless-stopped
- environment:
- - DEFAULT_USER=dmdb@example.com
- - DEFAULT_PASSWORD=admin
- networks:
- postgres:
- driver: bridge
- volumes:
- pgdata:
- pgadmin:
Add Comment
Please, Sign In to add comment