services: web: build: context: . environment: DATABASE_URL: postgresql://app:${SERVICE_PASSWORD_POSTGRES}@db:5432/app SESSION_SECRET: ${SERVICE_PASSWORD_64_SESSION} TOKEN_ENCRYPTION_KEY: ${SERVICE_PASSWORD_64_TOKENKEY} CRON_SECRET: ${SERVICE_PASSWORD_64_CRON} volumes: - web-data:/app/.data depends_on: db: condition: service_healthy healthcheck: test: ["CMD", "curl", "-fsS", "-o", "/dev/null", "http://127.0.0.1:3000/api/health"] interval: 30s timeout: 5s retries: 5 start_period: 20s db: image: postgres:17-alpine environment: POSTGRES_USER: app POSTGRES_PASSWORD: ${SERVICE_PASSWORD_POSTGRES} POSTGRES_DB: app volumes: - pg-data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U app -d app"] interval: 10s timeout: 5s retries: 10 volumes: web-data: pg-data: