{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2aa2664a-75fd-4eb3-bae2-09e691d8e82c",
    "slug": "huginn-agents",
    "name": "Huginn",
    "description": "Build agents that watch websites and alert you when they change",
    "url": "https://railway.com/deploy/huginn-agents",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/huginn-railway"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "huginn-web",
      "source": {
        "repo": "https://github.com/gridalpha/huginn-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "huginn-worker",
      "source": {
        "repo": "https://github.com/gridalpha/huginn-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "mailpit",
      "source": {
        "image": "axllent/mailpit:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "huginn-scheduler",
      "source": {
        "repo": "https://github.com/gridalpha/huginn-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/mnt/scheduler",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "huginn-web",
      "description": "HTTP port Puma binds",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "DOMAIN",
      "service": "huginn-web",
      "description": "Public hostname used in links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SMTP_SSL",
      "service": "huginn-web",
      "description": "No implicit TLS on 1025",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "FORCE_SSL",
      "service": "huginn-web",
      "description": "HSTS and Secure session cookies",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SMTP_PORT",
      "service": "huginn-web",
      "description": "Mailpit plain SMTP listener",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "SEED_EMAIL",
      "service": "huginn-web",
      "description": "First administrator email address",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "HUGINN_ROLE",
      "service": "huginn-web",
      "description": "Runs Puma, migrations and seeding",
      "secret": false,
      "strategy": "default",
      "default": "web"
    },
    {
      "key": "SMTP_DOMAIN",
      "service": "huginn-web",
      "description": "SMTP HELO domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SMTP_SERVER",
      "service": "huginn-web",
      "description": "Mailpit private hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "huginn-web",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SEED_PASSWORD",
      "service": "huginn-web",
      "description": "First administrator password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SEED_USERNAME",
      "service": "huginn-web",
      "description": "First administrator username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "INVITATION_CODE",
      "service": "huginn-web",
      "description": "Code required to register",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "APP_SECRET_TOKEN",
      "service": "huginn-web",
      "description": "Rails signing key, must stay stable",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "EMAIL_FROM_ADDRESS",
      "service": "huginn-web",
      "description": "From address on outgoing mail",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SKIP_INVITATION_CODE",
      "service": "huginn-web",
      "description": "Keeps signup closed",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DO_NOT_CREATE_DATABASE",
      "service": "huginn-web",
      "description": "Managed database already exists",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SMTP_ENABLE_STARTTLS_AUTO",
      "service": "huginn-web",
      "description": "Plain listener advertises no STARTTLS",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "huginn-web",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "15"
    },
    {
      "key": "DOMAIN",
      "service": "huginn-worker",
      "description": "Public hostname used in links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SMTP_SSL",
      "service": "huginn-worker",
      "description": "No implicit TLS on 1025",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SMTP_PORT",
      "service": "huginn-worker",
      "description": "Mailpit plain SMTP listener",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "DO_NOT_SEED",
      "service": "huginn-worker",
      "description": "Only the web service seeds",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "HUGINN_ROLE",
      "service": "huginn-worker",
      "description": "Runs queued agents via Delayed::Job",
      "secret": false,
      "strategy": "default",
      "default": "worker"
    },
    {
      "key": "SMTP_DOMAIN",
      "service": "huginn-worker",
      "description": "SMTP HELO domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SMTP_SERVER",
      "service": "huginn-worker",
      "description": "Mailpit private hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "huginn-worker",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_SECRET_TOKEN",
      "service": "huginn-worker",
      "description": "Shared Rails signing key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EMAIL_FROM_ADDRESS",
      "service": "huginn-worker",
      "description": "From address on outgoing mail",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DO_NOT_CREATE_DATABASE",
      "service": "huginn-worker",
      "description": "Managed database already exists",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DELAYED_JOB_MAX_RUNTIME",
      "service": "huginn-worker",
      "description": "Minutes before a job is abandoned",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "DELAYED_JOB_SLEEP_DELAY",
      "service": "huginn-worker",
      "description": "Seconds between queue polls",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "SMTP_ENABLE_STARTTLS_AUTO",
      "service": "huginn-worker",
      "description": "Plain listener advertises no STARTTLS",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "huginn-worker",
      "description": "Lets the current job finish",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PORT",
      "service": "mailpit",
      "description": "Web inbox HTTP port",
      "secret": false,
      "strategy": "default",
      "default": "8025"
    },
    {
      "key": "MP_UI_AUTH",
      "service": "mailpit",
      "description": "Basic auth for the inbox",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MP_DATABASE",
      "service": "mailpit",
      "description": "Message store on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/mailpit.db"
    },
    {
      "key": "MP_MAX_MESSAGES",
      "service": "mailpit",
      "description": "Messages retained before rotation",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "MP_UI_BIND_ADDR",
      "service": "mailpit",
      "description": "Dual-stack bind for the inbox",
      "secret": false,
      "strategy": "default",
      "default": "[::]:8025"
    },
    {
      "key": "MP_SMTP_BIND_ADDR",
      "service": "mailpit",
      "description": "Dual-stack bind for SMTP",
      "secret": false,
      "strategy": "default",
      "default": "[::]:1025"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "mailpit",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "DOMAIN",
      "service": "huginn-scheduler",
      "description": "Public hostname used in links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SMTP_SSL",
      "service": "huginn-scheduler",
      "description": "No implicit TLS on 1025",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SMTP_PORT",
      "service": "huginn-scheduler",
      "description": "Mailpit plain SMTP listener",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "DO_NOT_SEED",
      "service": "huginn-scheduler",
      "description": "Only the web service seeds",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "HUGINN_ROLE",
      "service": "huginn-scheduler",
      "description": "Queues agents whose schedule is due",
      "secret": false,
      "strategy": "default",
      "default": "scheduler"
    },
    {
      "key": "SMTP_DOMAIN",
      "service": "huginn-scheduler",
      "description": "SMTP HELO domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SMTP_SERVER",
      "service": "huginn-scheduler",
      "description": "Mailpit private hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "huginn-scheduler",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_SECRET_TOKEN",
      "service": "huginn-scheduler",
      "description": "Shared Rails signing key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EMAIL_FROM_ADDRESS",
      "service": "huginn-scheduler",
      "description": "From address on outgoing mail",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DO_NOT_CREATE_DATABASE",
      "service": "huginn-scheduler",
      "description": "Managed database already exists",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SMTP_ENABLE_STARTTLS_AUTO",
      "service": "huginn-scheduler",
      "description": "Plain listener advertises no STARTTLS",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "huginn-scheduler",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "15"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "huginn-agents"
      }
    },
    "cli": "railway deploy --template huginn-agents",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2aa2664a-75fd-4eb3-bae2-09e691d8e82c",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "07c461bc-51a9-46cb-8ac4-944033060415": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "07c461bc-51a9-46cb-8ac4-944033060415": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "4195d9e8-07de-4fa8-99a6-585291a46697": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/huginn.svg",
                  "name": "huginn-web",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/about",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/huginn-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Puma binds",
                      "defaultValue": "3000"
                    },
                    "DOMAIN": {
                      "isOptional": false,
                      "description": "Public hostname used in links",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SMTP_SSL": {
                      "isOptional": false,
                      "description": "No implicit TLS on 1025",
                      "defaultValue": "false"
                    },
                    "FORCE_SSL": {
                      "isOptional": false,
                      "description": "HSTS and Secure session cookies",
                      "defaultValue": "true"
                    },
                    "SMTP_PORT": {
                      "isOptional": false,
                      "description": "Mailpit plain SMTP listener",
                      "defaultValue": "1025"
                    },
                    "SEED_EMAIL": {
                      "isOptional": false,
                      "description": "First administrator email address",
                      "defaultValue": "admin@example.com"
                    },
                    "HUGINN_ROLE": {
                      "isOptional": false,
                      "description": "Runs Puma, migrations and seeding",
                      "defaultValue": "web"
                    },
                    "SMTP_DOMAIN": {
                      "isOptional": false,
                      "description": "SMTP HELO domain",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SMTP_SERVER": {
                      "isOptional": false,
                      "description": "Mailpit private hostname",
                      "defaultValue": "${{mailpit.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "SEED_PASSWORD": {
                      "isOptional": false,
                      "description": "First administrator password",
                      "defaultValue": "{{SEED_PASSWORD}}"
                    },
                    "SEED_USERNAME": {
                      "isOptional": false,
                      "description": "First administrator username",
                      "defaultValue": "admin"
                    },
                    "INVITATION_CODE": {
                      "isOptional": false,
                      "description": "Code required to register",
                      "defaultValue": "{{INVITATION_CODE}}"
                    },
                    "APP_SECRET_TOKEN": {
                      "isOptional": false,
                      "description": "Rails signing key, must stay stable",
                      "defaultValue": "{{APP_SECRET_TOKEN}}"
                    },
                    "EMAIL_FROM_ADDRESS": {
                      "isOptional": false,
                      "description": "From address on outgoing mail",
                      "defaultValue": "huginn@${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SKIP_INVITATION_CODE": {
                      "isOptional": false,
                      "description": "Keeps signup closed",
                      "defaultValue": "false"
                    },
                    "DO_NOT_CREATE_DATABASE": {
                      "isOptional": false,
                      "description": "Managed database already exists",
                      "defaultValue": "true"
                    },
                    "SMTP_ENABLE_STARTTLS_AUTO": {
                      "isOptional": false,
                      "description": "Plain listener advertises no STARTTLS",
                      "defaultValue": "false"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "15"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "964a8258-3bf5-4c2f-ab98-40238db701e1": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/huginn.svg",
                  "name": "huginn-worker",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/huginn-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "DOMAIN": {
                      "isOptional": false,
                      "description": "Public hostname used in links",
                      "defaultValue": "${{huginn-web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SMTP_SSL": {
                      "isOptional": false,
                      "description": "No implicit TLS on 1025",
                      "defaultValue": "false"
                    },
                    "SMTP_PORT": {
                      "isOptional": false,
                      "description": "Mailpit plain SMTP listener",
                      "defaultValue": "1025"
                    },
                    "DO_NOT_SEED": {
                      "isOptional": false,
                      "description": "Only the web service seeds",
                      "defaultValue": "true"
                    },
                    "HUGINN_ROLE": {
                      "isOptional": false,
                      "description": "Runs queued agents via Delayed::Job",
                      "defaultValue": "worker"
                    },
                    "SMTP_DOMAIN": {
                      "isOptional": false,
                      "description": "SMTP HELO domain",
                      "defaultValue": "${{huginn-web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SMTP_SERVER": {
                      "isOptional": false,
                      "description": "Mailpit private hostname",
                      "defaultValue": "${{mailpit.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "APP_SECRET_TOKEN": {
                      "isOptional": false,
                      "description": "Shared Rails signing key",
                      "defaultValue": "${{huginn-web.APP_SECRET_TOKEN}}"
                    },
                    "EMAIL_FROM_ADDRESS": {
                      "isOptional": false,
                      "description": "From address on outgoing mail",
                      "defaultValue": "huginn@${{huginn-web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DO_NOT_CREATE_DATABASE": {
                      "isOptional": false,
                      "description": "Managed database already exists",
                      "defaultValue": "true"
                    },
                    "DELAYED_JOB_MAX_RUNTIME": {
                      "isOptional": false,
                      "description": "Minutes before a job is abandoned",
                      "defaultValue": "2"
                    },
                    "DELAYED_JOB_SLEEP_DELAY": {
                      "isOptional": false,
                      "description": "Seconds between queue polls",
                      "defaultValue": "10"
                    },
                    "SMTP_ENABLE_STARTTLS_AUTO": {
                      "isOptional": false,
                      "description": "Plain listener advertises no STARTTLS",
                      "defaultValue": "false"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Lets the current job finish",
                      "defaultValue": "30"
                    }
                  }
                },
                "bbfad17b-f410-4248-b545-94883c1358e5": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mailpit.svg",
                  "name": "mailpit",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/livez",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "axllent/mailpit:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Web inbox HTTP port",
                      "defaultValue": "8025"
                    },
                    "MP_UI_AUTH": {
                      "isOptional": false,
                      "description": "Basic auth for the inbox",
                      "defaultValue": "{{MP_UI_AUTH}}"
                    },
                    "MP_DATABASE": {
                      "isOptional": false,
                      "description": "Message store on the volume",
                      "defaultValue": "/data/mailpit.db"
                    },
                    "MP_MAX_MESSAGES": {
                      "isOptional": false,
                      "description": "Messages retained before rotation",
                      "defaultValue": "5000"
                    },
                    "MP_UI_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Dual-stack bind for the inbox",
                      "defaultValue": "[::]:8025"
                    },
                    "MP_SMTP_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Dual-stack bind for SMTP",
                      "defaultValue": "[::]:1025"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "10"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8025": {
                        "port": 8025
                      }
                    }
                  },
                  "volumeMounts": {
                    "bbfad17b-f410-4248-b545-94883c1358e5": {
                      "mountPath": "/data"
                    }
                  }
                },
                "c158f438-33d0-4cc1-82c6-54ea048833fe": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/huginn.svg",
                  "name": "huginn-scheduler",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/huginn-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "DOMAIN": {
                      "isOptional": false,
                      "description": "Public hostname used in links",
                      "defaultValue": "${{huginn-web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SMTP_SSL": {
                      "isOptional": false,
                      "description": "No implicit TLS on 1025",
                      "defaultValue": "false"
                    },
                    "SMTP_PORT": {
                      "isOptional": false,
                      "description": "Mailpit plain SMTP listener",
                      "defaultValue": "1025"
                    },
                    "DO_NOT_SEED": {
                      "isOptional": false,
                      "description": "Only the web service seeds",
                      "defaultValue": "true"
                    },
                    "HUGINN_ROLE": {
                      "isOptional": false,
                      "description": "Queues agents whose schedule is due",
                      "defaultValue": "scheduler"
                    },
                    "SMTP_DOMAIN": {
                      "isOptional": false,
                      "description": "SMTP HELO domain",
                      "defaultValue": "${{huginn-web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SMTP_SERVER": {
                      "isOptional": false,
                      "description": "Mailpit private hostname",
                      "defaultValue": "${{mailpit.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "APP_SECRET_TOKEN": {
                      "isOptional": false,
                      "description": "Shared Rails signing key",
                      "defaultValue": "${{huginn-web.APP_SECRET_TOKEN}}"
                    },
                    "EMAIL_FROM_ADDRESS": {
                      "isOptional": false,
                      "description": "From address on outgoing mail",
                      "defaultValue": "huginn@${{huginn-web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DO_NOT_CREATE_DATABASE": {
                      "isOptional": false,
                      "description": "Managed database already exists",
                      "defaultValue": "true"
                    },
                    "SMTP_ENABLE_STARTTLS_AUTO": {
                      "isOptional": false,
                      "description": "Plain listener advertises no STARTTLS",
                      "defaultValue": "false"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "15"
                    }
                  },
                  "volumeMounts": {
                    "c158f438-33d0-4cc1-82c6-54ea048833fe": {
                      "mountPath": "/mnt/scheduler"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "huginn-web",
      "method": "GET",
      "path": "/about",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T14:13:11.179Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_a90988f41c7b44298e66",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 206,
    "typical_build_seconds": 81,
    "typical_start_seconds": 20,
    "slowest_service": "huginn-worker"
  }
}
