ozon-task/deployments/docker-compose/postgres/docker-compose.yml

24 lines
498 B
YAML
Raw Normal View History

2024-06-24 23:34:10 +00:00
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: