Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- main:
- image: postgres:14.1-alpine
- container_name: main
- restart: always
- environment:
- POSTGRES_DB: "users"
- POSTGRES_USER: "dev_user"
- POSTGRES_PASSWORD: "password12345"
- ports:
- - '5432:5432'
- volumes:
- - main:/var/lib/postgresql/data
- healthcheck:
- test: ["CMD-SHELL", "pg_isready -q --dbname=users --user=dev_user --host=localhost --port=5432"]
- interval: 3s
- timeout: 1s
- retries: 30
- restored:
- image: postgres:14.1-alpine
- container_name: restored
- restart: always
- environment:
- POSTGRES_DB: "users"
- POSTGRES_USER: "dev_user"
- POSTGRES_PASSWORD: "password12345"
- ports:
- - '5433:5432'
- healthcheck:
- test: ["CMD-SHELL", "pg_isready -q --dbname=users --user=dev_user --host=localhost --port=5432"]
- interval: 3s
- timeout: 1s
- retries: 30
- volumes:
- main:
- driver: local
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement