Files
mtusi2026lab2/compose.track2-restore.yaml
T
2026-10-23 14:47:53 +03:00

20 lines
441 B
YAML

services:
postgres_restore:
image: postgres:16.8-alpine
environment:
POSTGRES_USER: messenger
POSTGRES_PASSWORD: messenger_dev_only
POSTGRES_DB: postgres
ports:
- '5433:5432'
volumes:
- postgres_restore_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U messenger']
interval: 3s
timeout: 3s
retries: 20
volumes:
postgres_restore_data: