2026-05-25 19:23:07 +02:00
|
|
|
services:
|
|
|
|
|
postgres:
|
|
|
|
|
image: postgres:16-alpine
|
2026-05-25 19:46:25 +02:00
|
|
|
env_file:
|
|
|
|
|
- .env
|
2026-05-25 19:23:07 +02:00
|
|
|
environment:
|
|
|
|
|
POSTGRES_USER: corvid
|
|
|
|
|
POSTGRES_DB: corvid
|
|
|
|
|
volumes:
|
|
|
|
|
- pgdata:/var/lib/postgresql/data
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U corvid"]
|
|
|
|
|
interval: 5s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 10
|
|
|
|
|
|
|
|
|
|
app:
|
|
|
|
|
build: .
|
|
|
|
|
ports:
|
|
|
|
|
- "8090:8080"
|
|
|
|
|
env_file:
|
|
|
|
|
- .env
|
|
|
|
|
depends_on:
|
|
|
|
|
postgres:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
pgdata:
|