services:
  - type: web
    name: pulso-cemi
    runtime: node
    buildCommand: npm run install:all && npm run build
    startCommand: npm start
    healthCheckPath: /api/health
    envVars:
      - key: NODE_ENV
        value: production
      - key: JWT_SECRET
        generateValue: true
      - key: DB_FILE
        value: /var/data/cemi.sqlite
    disk:
      name: pulso-cemi-data
      mountPath: /var/data
      sizeGB: 1
