Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.7'
- networks:
- br0:
- volumes:
- db-data:
- services:
- db:
- image: postgres:11
- restart: unless-stopped
- networks:
- br0:
- aliases:
- - db
- ports:
- - "6101:5432"
- volumes:
- - db-data:/var/lib/postgresql/data
- environment:
- - POSTGRES_USER=postgres
- - POSTGRES_PASSWORD=test123
- healthcheck:
- test: ["CMD-SHELL", "pg_isready -U postgres"]
- interval: 10s
- timeout: 5s
- retries: 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement