23 lines
498 B
YAML
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:
|