ozon-task/deployments/docker-compose/postgres/docker-compose.yml
2024-06-25 02:34:10 +03:00

23 lines
498 B
YAML

services:
ozon-task:
image: ozon-task:latest
ports:
- 8080:8080
env_file: ozon-task.env
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:latest
hostname: postgres
env_file: postgres.env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- postgres-data:/var/lib/postgresql/data
volumes:
postgres-data: