{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1973b82f-023d-42bb-8652-b068cb6dc2c4",
    "slug": "windmill-self-hosted-retool-airflow-alte",
    "name": "Windmill (Self-Hosted Retool / Airflow Alternative)",
    "description": "Self-hosted Retool/Airflow alternative for scripts, APIs & workflows",
    "url": "https://railway.com/deploy/windmill-self-hosted-retool-airflow-alte",
    "upstream": {
      "image": "ghcr.io/windmill-labs/windmill:1.792.1"
    }
  },
  "services": [
    {
      "name": "windmill",
      "source": {
        "image": "ghcr.io/windmill-labs/windmill:1.792.1"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "postgres",
      "source": {
        "image": "postgres:16"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "humble-tenderness",
      "source": {
        "image": "ghcr.io/windmill-labs/windmill:1.792.1"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "MODE",
      "service": "windmill",
      "description": "Runs this service as the Windmill server (web UI + API). Database migrations run automatically on boot.",
      "secret": false,
      "strategy": "default",
      "default": "server"
    },
    {
      "key": "PORT",
      "service": "windmill",
      "description": "Port the Windmill server listens on. Must match the public domain's target port.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "BASE_URL",
      "service": "windmill",
      "description": "Public URL of your Windmill instance, auto-filled from the generated Railway domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RUST_LOG",
      "service": "windmill",
      "description": "Log verbosity: error, warn, info, debug, or trace.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "DATABASE_URL",
      "service": "windmill",
      "description": "Postgres connection string, referencing the postgres service over Railway's private network. sslmode=disable is required.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "BASE_INTERNAL_URL",
      "service": "windmill",
      "description": "Internal URL the server uses to reach itself. Leave as the default.",
      "secret": false,
      "strategy": "default",
      "default": "http://localhost:8000"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "Postgres data directory on the mounted volume. The /pgdata subdirectory avoids the lost+found init error.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Name of the database Windmill uses. Created automatically on first boot.",
      "secret": false,
      "strategy": "default",
      "default": "windmill"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Postgres superuser name used by Windmill to connect.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Auto-generated database password. Alphanumeric to stay safe inside the connection string.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MODE",
      "service": "humble-tenderness",
      "description": "Runs this service as a Windmill worker that executes jobs. Add more worker replicas to scale throughput.",
      "secret": false,
      "strategy": "default",
      "default": "worker"
    },
    {
      "key": "RUST_LOG",
      "service": "humble-tenderness",
      "description": "Log verbosity: error, warn, info, debug, or trace.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "NUM_WORKERS",
      "service": "humble-tenderness",
      "description": "Number of worker processes per container. Increase for more parallelism on a larger container.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "DATABASE_URL",
      "service": "humble-tenderness",
      "description": "Postgres connection string, referencing the postgres service over Railway's private network. Must match the server's value.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WORKER_GROUP",
      "service": "humble-tenderness",
      "description": "Worker group this worker belongs to. Leave as default unless you configure dedicated groups.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "windmill-self-hosted-retool-airflow-alte"
      }
    },
    "cli": "railway deploy --template windmill-self-hosted-retool-airflow-alte",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1973b82f-023d-42bb-8652-b068cb6dc2c4",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "a223b203-f8e5-47e8-a290-938681d39f5a": {
                  "icon": null,
                  "name": "windmill",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/windmill-labs/windmill:1.792.1"
                  },
                  "variables": {
                    "MODE": {
                      "isOptional": false,
                      "description": "Runs this service as the Windmill server (web UI + API). Database migrations run automatically on boot.",
                      "defaultValue": "server"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the Windmill server listens on. Must match the public domain's target port.",
                      "defaultValue": "8000"
                    },
                    "BASE_URL": {
                      "isOptional": false,
                      "description": "Public URL of your Windmill instance, auto-filled from the generated Railway domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RUST_LOG": {
                      "isOptional": false,
                      "description": "Log verbosity: error, warn, info, debug, or trace.",
                      "defaultValue": "info"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string, referencing the postgres service over Railway's private network. sslmode=disable is required.",
                      "defaultValue": "postgresql://${{postgres.POSTGRES_USER}}:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{postgres.POSTGRES_DB}}?sslmode=disable"
                    },
                    "BASE_INTERNAL_URL": {
                      "isOptional": false,
                      "description": "Internal URL the server uses to reach itself. Leave as the default.",
                      "defaultValue": "http://localhost:8000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "ba6a0cc2-741d-4bc1-b100-ead197d52d9f": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:16"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Postgres data directory on the mounted volume. The /pgdata subdirectory avoids the lost+found init error.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Name of the database Windmill uses. Created automatically on first boot.",
                      "defaultValue": "windmill"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Postgres superuser name used by Windmill to connect.",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password. Alphanumeric to stay safe inside the connection string.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "ba6a0cc2-741d-4bc1-b100-ead197d52d9f": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "cdcd88e1-5151-452a-b389-9abd87bb4eb7": {
                  "icon": null,
                  "name": "humble-tenderness",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/windmill-labs/windmill:1.792.1"
                  },
                  "variables": {
                    "MODE": {
                      "isOptional": false,
                      "description": "Runs this service as a Windmill worker that executes jobs. Add more worker replicas to scale throughput.",
                      "defaultValue": "worker"
                    },
                    "RUST_LOG": {
                      "isOptional": false,
                      "description": "Log verbosity: error, warn, info, debug, or trace.",
                      "defaultValue": "info"
                    },
                    "NUM_WORKERS": {
                      "isOptional": false,
                      "description": "Number of worker processes per container. Increase for more parallelism on a larger container.",
                      "defaultValue": "1"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string, referencing the postgres service over Railway's private network. Must match the server's value.",
                      "defaultValue": "postgresql://${{postgres.POSTGRES_USER}}:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{postgres.POSTGRES_DB}}?sslmode=disable"
                    },
                    "WORKER_GROUP": {
                      "isOptional": false,
                      "description": "Worker group this worker belongs to. Leave as default unless you configure dedicated groups.",
                      "defaultValue": "default"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T04:14:38.010Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T06:51:38.596Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_69ba71af48784acc8134",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 37,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "windmill"
  }
}
