services:
  api:
    image: ${REGISTRY}/${IMAGE_NS}:${TAG}
    container_name: jsmr-api
    restart: unless-stopped
    environment:
      ASPNETCORE_URLS: http://+:8080
      ASPNETCORE_ENVIRONMENT: Production
      ConnectionStrings__Default: ${DB_CONN}
      CORS__AllowedOrigins: ${ALLOWED_ORIGINS}
      TZ: ${TZ:-America/Detroit}
    ports:
      - "8080:8080"   # or remove and put behind your Synology reverse-proxy
    healthcheck:
      test: ["CMD", "wget", "-qO-", "http://localhost:8080/health"]
      interval: 10s
      timeout: 3s
      retries: 12