2026-06-16 10:27:33 +02:00
|
|
|
services:
|
|
|
|
|
db:
|
2026-06-26 21:42:16 +00:00
|
|
|
image: postgres:18-alpine
|
2026-06-16 10:27:33 +02:00
|
|
|
environment:
|
|
|
|
|
POSTGRES_USER: retro
|
|
|
|
|
POSTGRES_PASSWORD: retro
|
|
|
|
|
POSTGRES_DB: retro
|
|
|
|
|
ports:
|
|
|
|
|
- "5433:5432"
|
|
|
|
|
volumes:
|
|
|
|
|
- pgdata:/var/lib/postgresql/data
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U retro"]
|
|
|
|
|
interval: 5s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
|
|
|
|
|
|
|
|
|
app:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
target: production
|
|
|
|
|
environment:
|
|
|
|
|
DATABASE_URL: postgres://retro:retro@db:5432/retro
|
|
|
|
|
PORT: "3001"
|
|
|
|
|
WEB_ORIGIN: "*"
|
|
|
|
|
ports:
|
|
|
|
|
- "3001:3001"
|
|
|
|
|
depends_on:
|
|
|
|
|
db:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
pgdata:
|