services: db: image: postgres:17-alpine restart: unless-stopped environment: POSTGRES_USER: mccc POSTGRES_PASSWORD: mccc POSTGRES_DB: mccc volumes: - db-data:/var/lib/postgresql/data ports: - "5432:5432" healthcheck: test: ["CMD-SHELL", "pg_isready -U mccc -d mccc"] interval: 5s timeout: 5s retries: 10 backend: build: . restart: unless-stopped depends_on: db: condition: service_healthy environment: HOST: 0.0.0.0 PORT: 3000 DATABASE_URL: postgres://mccc:mccc@db:5432/mccc HISTORY_INTERVAL_SECONDS: 300 TLS_ENABLED: "true" CORS_ORIGIN: "*" PUBLIC_URL: https://localhost:3000 ports: - "3000:3000" volumes: # Persists the auto-generated self-signed certificate between restarts. - ./certs:/app/certs volumes: db-data: