Files

35 lines
667 B
YAML
Raw Permalink Normal View History

services:
db:
image: postgres:18-alpine
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: