Files
Lyra/docker-compose.yml
T
Jonathan 52a0999f9b chore: add restart policies and document prisma copy step
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-10 17:22:36 +02:00

41 lines
840 B
YAML

services:
db:
image: postgres:17
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
web:
build: ./web
restart: unless-stopped
environment:
DATABASE_URL: ${DATABASE_URL}
ports:
- "3000:3000"
depends_on:
db:
condition: service_healthy
worker:
build: ./worker
restart: unless-stopped
environment:
DATABASE_URL: ${DATABASE_URL}
depends_on:
db:
condition: service_healthy
volumes:
postgres-data: