{
  "manifest_version": "1.0.0",
  "template": {
    "id": "23bac342-0523-4e08-a808-5328d222e15f",
    "slug": "windmill-automatio-1",
    "name": "Windmill",
    "description": "Turn scripts into scheduled jobs, APIs and internal apps",
    "url": "https://railway.com/deploy/windmill-automatio-1",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/windmill-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": "windmill-server",
      "source": {
        "repo": "https://github.com/gridalpha/windmill-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "windmill-extra",
      "source": {
        "repo": "https://github.com/gridalpha/windmill-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "windmill-worker-native",
      "source": {
        "repo": "https://github.com/gridalpha/windmill-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "windmill-worker",
      "source": {
        "repo": "https://github.com/gridalpha/windmill-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/tmp/windmill/cache",
      "http": false
    },
    {
      "name": "caddy",
      "source": {
        "repo": "https://github.com/gridalpha/windmill-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "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, read by the server",
      "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": "MODE",
      "service": "windmill-server",
      "description": "Runs the API and frontend role",
      "secret": false,
      "strategy": "default",
      "default": "server"
    },
    {
      "key": "PORT",
      "service": "windmill-server",
      "description": "HTTP port the server binds",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "BASE_URL",
      "service": "windmill-server",
      "description": "Public URL in webhooks and emails",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RUST_LOG",
      "service": "windmill-server",
      "description": "Log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "DATABASE_URL",
      "service": "windmill-server",
      "description": "Postgres connection, TLS off on private net",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WM_ADMIN_PASSWORD",
      "service": "windmill-server",
      "description": "First superadmin password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "windmill-extra",
      "description": "Gateway port fronting the extra services",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "ENABLE_LSP",
      "service": "windmill-extra",
      "description": "Editor language servers",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DEBUGGER_PORT",
      "service": "windmill-extra",
      "description": "Debugger listening port",
      "secret": false,
      "strategy": "default",
      "default": "3003"
    },
    {
      "key": "ENABLE_NSJAIL",
      "service": "windmill-extra",
      "description": "Needs privileged containers",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ENABLE_DEBUGGER",
      "service": "windmill-extra",
      "description": "Interactive DAP debugger",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "WINDMILL_BASE_URL",
      "service": "windmill-extra",
      "description": "Server address for config lookups",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENABLE_MULTIPLAYER",
      "service": "windmill-extra",
      "description": "Enterprise Edition feature",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DEBUG_ALLOWED_ORIGINS",
      "service": "windmill-extra",
      "description": "Origin allowlist for debug sockets",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "REQUIRE_SIGNED_DEBUG_REQUESTS",
      "service": "windmill-extra",
      "description": "Never false on a public deployment",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "MODE",
      "service": "windmill-worker-native",
      "description": "Runs the job execution role",
      "secret": false,
      "strategy": "default",
      "default": "worker"
    },
    {
      "key": "RUST_LOG",
      "service": "windmill-worker-native",
      "description": "Log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "NATIVE_MODE",
      "service": "windmill-worker-native",
      "description": "Lightweight in-process jobs only",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SLEEP_QUEUE",
      "service": "windmill-worker-native",
      "description": "Queue poll interval in milliseconds",
      "secret": false,
      "strategy": "default",
      "default": "200"
    },
    {
      "key": "DATABASE_URL",
      "service": "windmill-worker-native",
      "description": "Postgres connection, TLS off on private net",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORKER_GROUP",
      "service": "windmill-worker-native",
      "description": "Worker group this container joins",
      "secret": false,
      "strategy": "default",
      "default": "native"
    },
    {
      "key": "MIN_FREE_DISK_SPACE_MB",
      "service": "windmill-worker-native",
      "description": "Free space before Windmill alerts",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "MODE",
      "service": "windmill-worker",
      "description": "Runs the job execution role",
      "secret": false,
      "strategy": "default",
      "default": "worker"
    },
    {
      "key": "RUST_LOG",
      "service": "windmill-worker",
      "description": "Log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "NUM_WORKERS",
      "service": "windmill-worker",
      "description": "Worker processes per container",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "DATABASE_URL",
      "service": "windmill-worker",
      "description": "Postgres connection, TLS off on private net",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORKER_GROUP",
      "service": "windmill-worker",
      "description": "Worker group this container joins",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "MIN_FREE_DISK_SPACE_MB",
      "service": "windmill-worker",
      "description": "Free space before Windmill alerts",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "PORT",
      "service": "caddy",
      "description": "Port the proxy listens on",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "WINDMILL_EXTRA_HOST",
      "service": "caddy",
      "description": "Language server upstream",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WINDMILL_SERVER_HOST",
      "service": "caddy",
      "description": "Windmill API upstream",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "windmill-automatio-1"
      }
    },
    "cli": "railway deploy --template windmill-automatio-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "23bac342-0523-4e08-a808-5328d222e15f",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0847af64-4add-4ade-899c-e65eab9d5723": {
                  "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, read by the server",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "0847af64-4add-4ade-899c-e65eab9d5723": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "20dfb655-9253-4a0c-b0a5-58c920962d5b": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/windmill.svg",
                  "name": "windmill-server",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/version",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/windmill-railway",
                    "rootDirectory": "windmill"
                  },
                  "variables": {
                    "MODE": {
                      "isOptional": false,
                      "description": "Runs the API and frontend role",
                      "defaultValue": "server"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port the server binds",
                      "defaultValue": "8000"
                    },
                    "BASE_URL": {
                      "isOptional": false,
                      "description": "Public URL in webhooks and emails",
                      "defaultValue": "https://${{caddy.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RUST_LOG": {
                      "isOptional": false,
                      "description": "Log verbosity",
                      "defaultValue": "info"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection, TLS off on private net",
                      "defaultValue": "${{Postgres.DATABASE_URL}}?sslmode=disable"
                    },
                    "WM_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "First superadmin password",
                      "defaultValue": "{{WM_ADMIN_PASSWORD}}"
                    }
                  }
                },
                "220d0f34-755d-4df7-9d71-b8d185682b68": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/windmill.svg",
                  "name": "windmill-extra",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/windmill-railway",
                    "rootDirectory": "extra"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Gateway port fronting the extra services",
                      "defaultValue": "3000"
                    },
                    "ENABLE_LSP": {
                      "isOptional": false,
                      "description": "Editor language servers",
                      "defaultValue": "true"
                    },
                    "DEBUGGER_PORT": {
                      "isOptional": false,
                      "description": "Debugger listening port",
                      "defaultValue": "3003"
                    },
                    "ENABLE_NSJAIL": {
                      "isOptional": false,
                      "description": "Needs privileged containers",
                      "defaultValue": "false"
                    },
                    "ENABLE_DEBUGGER": {
                      "isOptional": false,
                      "description": "Interactive DAP debugger",
                      "defaultValue": "true"
                    },
                    "WINDMILL_BASE_URL": {
                      "isOptional": false,
                      "description": "Server address for config lookups",
                      "defaultValue": "http://${{windmill-server.RAILWAY_PRIVATE_DOMAIN}}:8000"
                    },
                    "ENABLE_MULTIPLAYER": {
                      "isOptional": false,
                      "description": "Enterprise Edition feature",
                      "defaultValue": "false"
                    },
                    "DEBUG_ALLOWED_ORIGINS": {
                      "isOptional": false,
                      "description": "Origin allowlist for debug sockets",
                      "defaultValue": "https://${{caddy.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "REQUIRE_SIGNED_DEBUG_REQUESTS": {
                      "isOptional": false,
                      "description": "Never false on a public deployment",
                      "defaultValue": "true"
                    }
                  }
                },
                "3bfd1fb2-4c88-49b4-ba2b-9c5b9444c7d4": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/windmill.svg",
                  "name": "windmill-worker-native",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/windmill-railway",
                    "rootDirectory": "windmill"
                  },
                  "variables": {
                    "MODE": {
                      "isOptional": false,
                      "description": "Runs the job execution role",
                      "defaultValue": "worker"
                    },
                    "RUST_LOG": {
                      "isOptional": false,
                      "description": "Log verbosity",
                      "defaultValue": "info"
                    },
                    "NATIVE_MODE": {
                      "isOptional": false,
                      "description": "Lightweight in-process jobs only",
                      "defaultValue": "true"
                    },
                    "SLEEP_QUEUE": {
                      "isOptional": false,
                      "description": "Queue poll interval in milliseconds",
                      "defaultValue": "200"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection, TLS off on private net",
                      "defaultValue": "${{Postgres.DATABASE_URL}}?sslmode=disable"
                    },
                    "WORKER_GROUP": {
                      "isOptional": false,
                      "description": "Worker group this container joins",
                      "defaultValue": "native"
                    },
                    "MIN_FREE_DISK_SPACE_MB": {
                      "isOptional": false,
                      "description": "Free space before Windmill alerts",
                      "defaultValue": "1000"
                    }
                  }
                },
                "42a099b5-e581-4c55-ad1c-63c456912ff8": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/windmill.svg",
                  "name": "windmill-worker",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/windmill-railway",
                    "rootDirectory": "windmill"
                  },
                  "variables": {
                    "MODE": {
                      "isOptional": false,
                      "description": "Runs the job execution role",
                      "defaultValue": "worker"
                    },
                    "RUST_LOG": {
                      "isOptional": false,
                      "description": "Log verbosity",
                      "defaultValue": "info"
                    },
                    "NUM_WORKERS": {
                      "isOptional": false,
                      "description": "Worker processes per container",
                      "defaultValue": "1"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection, TLS off on private net",
                      "defaultValue": "${{Postgres.DATABASE_URL}}?sslmode=disable"
                    },
                    "WORKER_GROUP": {
                      "isOptional": false,
                      "description": "Worker group this container joins",
                      "defaultValue": "default"
                    },
                    "MIN_FREE_DISK_SPACE_MB": {
                      "isOptional": false,
                      "description": "Free space before Windmill alerts",
                      "defaultValue": "1000"
                    }
                  },
                  "volumeMounts": {
                    "42a099b5-e581-4c55-ad1c-63c456912ff8": {
                      "mountPath": "/tmp/windmill/cache"
                    }
                  }
                },
                "aed1db3b-ed26-4d77-a10e-31e5dc17fcd6": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/caddy.svg",
                  "name": "caddy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/windmill-railway",
                    "rootDirectory": "caddy"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the proxy listens on",
                      "defaultValue": "8080"
                    },
                    "WINDMILL_EXTRA_HOST": {
                      "isOptional": false,
                      "description": "Language server upstream",
                      "defaultValue": "${{windmill-extra.RAILWAY_PRIVATE_DOMAIN}}:3000"
                    },
                    "WINDMILL_SERVER_HOST": {
                      "isOptional": false,
                      "description": "Windmill API upstream",
                      "defaultValue": "${{windmill-server.RAILWAY_PRIVATE_DOMAIN}}:8000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "caddy",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 6,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T15:59:24.129Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_efdbf9af7bf343649e2a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 238,
    "typical_build_seconds": 127,
    "typical_start_seconds": 62,
    "slowest_service": "windmill-server"
  }
}
