Files
test/docker-compose.yml
dmitriy.churmeev cab24a6a1d init
2026-03-03 20:37:47 +03:00

22 lines
441 B
YAML

version: '3.8'
services:
postgres:
image: postgres:15
container_name: postgres_db
environment:
POSTGRES_DB: add_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data: