{
  "manifest_version": "1.0.0",
  "template": {
    "id": "81ba50e2-fc6b-4752-ab2b-a072f00848cd",
    "slug": "windmill-2",
    "name": "windmill [Updated Sep '26]",
    "description": "Windmill [Sep '26] (Scripts, Workflows & Internal Tools) Self Host",
    "url": "https://railway.com/deploy/windmill-2",
    "upstream": {
      "repo_url": "https://github.com/shruti060701/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-railway",
      "source": {
        "repo": "https://github.com/shruti060701/windmill-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "poetic-grace",
      "source": {
        "repo": "https://github.com/shruti060701/windmill-railway"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Directory where Postgres stores its data files. Confirmed live already correct out of the box, no manual fix needed this time (unlike some earlier templates in this project).",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Internal hostname for the database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port Postgres listens on internally. **Verify this is actually filled in, not left as an empty \"to be filled by the user\" placeholder**, this exact composer glitch has recurred on this project's Umami and NocoDB templates.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Database username.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Database name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Database password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database name created on startup.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Standard internal connection string, referenced directly by both `windmill-railway` and `poetic-grace` above.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Username for the Postgres superuser account.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate validity period. Confirmed live, already filled in.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated superuser password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public/external connection string for reaching this database from outside Railway's network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Seconds Railway waits for active connections before a redeploy. Confirmed live, already filled in.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "MODE",
      "service": "windmill-railway",
      "description": "Runs this service as the API server and UI.",
      "secret": false,
      "strategy": "default",
      "default": "server"
    },
    {
      "key": "PORT",
      "service": "windmill-railway",
      "description": "Port Railway routes external traffic to. Must be an explicit Railway variable, this project has confirmed the hard way on multiple prior templates that a Dockerfile-only default alone doesn't reliably get picked up by Railway's edge routing.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "DATABASE_URL",
      "service": "windmill-railway",
      "description": "Connection string for Windmill's own database (scripts, flows, users, execution history).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WINDMILL_PUBLIC_URL",
      "service": "windmill-railway",
      "description": "Public URL of the instance, used for OAuth callbacks and generated links.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MODE",
      "service": "poetic-grace",
      "description": "Runs this service as a job-executing worker instead of the API server.",
      "secret": false,
      "strategy": "default",
      "default": "worker"
    },
    {
      "key": "DATABASE_URL",
      "service": "poetic-grace",
      "description": "Same database as the server. Workers pull jobs from the same queue stored here.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "windmill-2"
      }
    },
    "cli": "railway deploy --template windmill-2",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "81ba50e2-fc6b-4752-ab2b-a072f00848cd",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3f5def09-8db1-4c3f-bcd4-9dad505f9498": {
                  "icon": "https://devicons.railway.app/i/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": true,
                      "description": "Directory where Postgres stores its data files. Confirmed live already correct out of the box, no manual fix needed this time (unlike some earlier templates in this project).",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Internal hostname for the database.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port Postgres listens on internally. **Verify this is actually filled in, not left as an empty \"to be filled by the user\" placeholder**, this exact composer glitch has recurred on this project's Umami and NocoDB templates.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Database username.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Database name.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Database password.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Default database name created on startup.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Standard internal connection string, referenced directly by both `windmill-railway` and `poetic-grace` above.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "Username for the Postgres superuser account.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate validity period. Confirmed live, already filled in.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated superuser password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public/external connection string for reaching this database from outside Railway's network.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Seconds Railway waits for active connections before a redeploy. Confirmed live, already filled in.",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "3f5def09-8db1-4c3f-bcd4-9dad505f9498": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "82c1267d-b59b-40a2-91a9-9e289903dbdb": {
                  "icon": "https://res.cloudinary.com/dh2nt6hgh/image/upload/v1759033930/images_4_mtuemg.png",
                  "name": "windmill-railway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/version",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/shruti060701/windmill-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "MODE": {
                      "isOptional": false,
                      "description": "Runs this service as the API server and UI.",
                      "defaultValue": "server"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes external traffic to. Must be an explicit Railway variable, this project has confirmed the hard way on multiple prior templates that a Dockerfile-only default alone doesn't reliably get picked up by Railway's edge routing.",
                      "defaultValue": "8000"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Connection string for Windmill's own database (scripts, flows, users, execution history).",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "WINDMILL_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public URL of the instance, used for OAuth callbacks and generated links.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "8b27e9d8-3ae4-40a1-9a4d-fc8e781f73b6": {
                  "icon": "https://res.cloudinary.com/dh2nt6hgh/image/upload/v1759033930/images_4_mtuemg.png",
                  "name": "poetic-grace",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/shruti060701/windmill-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "MODE": {
                      "isOptional": false,
                      "description": "Runs this service as a job-executing worker instead of the API server.",
                      "defaultValue": "worker"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Same database as the server. Workers pull jobs from the same queue stored here.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "windmill-railway",
      "method": "GET",
      "path": "/api/version",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-22T09:52:11.975Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_9bab3ad49b534eada8e5",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 139,
    "typical_build_seconds": 53,
    "typical_start_seconds": 30,
    "slowest_service": "windmill-railway"
  }
}
