version: '3.8' services: nutriphi-backend: build: context: . dockerfile: Dockerfile container_name: nutriphi-backend restart: unless-stopped environment: - NODE_ENV=production - PORT=${PORT:-3002} - DATABASE_URL=${DATABASE_URL} - GEMINI_API_KEY=${GEMINI_API_KEY} - S3_ENDPOINT=${S3_ENDPOINT} - S3_ACCESS_KEY_ID=${S3_ACCESS_KEY_ID} - S3_SECRET_ACCESS_KEY=${S3_SECRET_ACCESS_KEY} - S3_BUCKET_NAME=${S3_BUCKET_NAME} - S3_REGION=${S3_REGION:-fsn1} - S3_PUBLIC_URL=${S3_PUBLIC_URL} - MANACORE_AUTH_URL=${MANACORE_AUTH_URL} ports: - "${PORT:-3002}:${PORT:-3002}" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:${PORT:-3002}/api/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s labels: - "coolify.managed=true"