Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3"
- services:
- db:
- image: postgres:9.5
- container_name: "postgres"
- restart: always
- ports:
- - "5432:5432"
- expose:
- - "5432"
- environment:
- - "POSTGRES_USER=postgres_user"
- - "POSTGRES_PASSWORD=postgres_password"
- volumes:
- - "db-data:/var/lib/postgresql/data"
- pgweb:
- image: sosedoff/pgweb
- container_name: "pgweb"
- restart: always
- network_mode: "host"
- ports:
- - "8081:8081"
- expose:
- - "8081"
- links:
- - db:postgres
- environment:
- - "DATABASE_URL=postgres://postgres_user:postgres_password@postgres:5432/postgres?sslmode=disable"
- depends_on:
- - db
- volumes:
- db-data:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement