{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7b2add25-d6ab-437d-a6ee-9fc1b4ecec58",
    "slug": "windmill-workflows",
    "name": "Windmill | Open Source Retool Alternative",
    "description": "Self-hostable Retool/n8n/Airflow alternative for scripts & workflows",
    "url": "https://railway.com/deploy/windmill-workflows",
    "upstream": {
      "image": "ghcr.io/windmill-labs/windmill:1.805.0"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "postgres:17.10-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Windmill Worker",
      "source": {
        "image": "ghcr.io/windmill-labs/windmill:1.805.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Windmill",
      "source": {
        "image": "ghcr.io/windmill-labs/windmill:1.805.0"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Postgres data directory, one level below the mount so the volume's lost+found never blocks init.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database Windmill uses for all of its state.",
      "secret": false,
      "strategy": "default",
      "default": "windmill"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser Windmill connects as; owns the schema and runs migrations.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Generated Postgres password, referenced by DATABASE_URL on the app services.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MODE",
      "service": "Windmill Worker",
      "description": "worker = pulls jobs from the queue and executes them; talks only to the database.",
      "secret": false,
      "strategy": "default",
      "default": "worker"
    },
    {
      "key": "DATABASE_URL",
      "service": "Windmill Worker",
      "description": "Full Postgres connection string; sslmode=disable for the plain private database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_WAIT_HOST",
      "service": "Windmill Worker",
      "description": "Postgres host the boot wait-loop probes.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_WAIT_PORT",
      "service": "Windmill Worker",
      "description": "Postgres port the boot wait-loop probes before the worker starts.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "WORKER_GROUP",
      "service": "Windmill Worker",
      "description": "Worker group this node joins. Duplicate this service to add parallel workers.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "MODE",
      "service": "Windmill",
      "description": "server = API + web UI; runs the DB migrations on boot (workers forced to 0).",
      "secret": false,
      "strategy": "default",
      "default": "server"
    },
    {
      "key": "PORT",
      "service": "Windmill",
      "description": "HTTP port the server binds; Railway routes traffic and the healthcheck here.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "BASE_URL",
      "service": "Windmill",
      "description": "Public URL of this instance; used for webhooks, emails and the SDK base handed to jobs.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "Windmill",
      "description": "Full Postgres connection string; sslmode=disable for the plain private database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_WAIT_HOST",
      "service": "Windmill",
      "description": "Postgres host the boot wait-loop probes.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_WAIT_PORT",
      "service": "Windmill",
      "description": "Postgres port the boot wait-loop probes before the server starts.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "windmill-workflows"
      }
    },
    "cli": "railway deploy --template windmill-workflows",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7b2add25-d6ab-437d-a6ee-9fc1b4ecec58",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "15c87214-c17b-4dfb-aa41-6425521cbd05": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 2
                  },
                  "source": {
                    "image": "postgres:17.10-alpine"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Postgres data directory, one level below the mount so the volume's lost+found never blocks init.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database Windmill uses for all of its state.",
                      "defaultValue": "windmill"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser Windmill connects as; owns the schema and runs migrations.",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated Postgres password, referenced by DATABASE_URL on the app services.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "15c87214-c17b-4dfb-aa41-6425521cbd05": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "23c66cd3-1671-49fd-9e8b-e59466e2a3bd": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/windmill.svg",
                  "name": "Windmill Worker",
                  "deploy": {
                    "startCommand": "bash -c 'for i in $(seq 1 90); do (echo > /dev/tcp/$DB_WAIT_HOST/$DB_WAIT_PORT) 2>/dev/null && break; echo \"waiting for postgres ($i/90)\"; sleep 2; done; exec windmill'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "image": "ghcr.io/windmill-labs/windmill:1.805.0"
                  },
                  "variables": {
                    "MODE": {
                      "isOptional": false,
                      "description": "worker = pulls jobs from the queue and executes them; talks only to the database.",
                      "defaultValue": "worker"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Full Postgres connection string; sslmode=disable for the plain private database.",
                      "defaultValue": "postgresql://postgres:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/windmill?sslmode=disable"
                    },
                    "DB_WAIT_HOST": {
                      "isOptional": false,
                      "description": "Postgres host the boot wait-loop probes.",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_WAIT_PORT": {
                      "isOptional": false,
                      "description": "Postgres port the boot wait-loop probes before the worker starts.",
                      "defaultValue": "5432"
                    },
                    "WORKER_GROUP": {
                      "isOptional": false,
                      "description": "Worker group this node joins. Duplicate this service to add parallel workers.",
                      "defaultValue": "default"
                    }
                  }
                },
                "48c9f2e0-833b-4694-a5df-1411e228c958": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/windmill.svg",
                  "name": "Windmill",
                  "deploy": {
                    "startCommand": "bash -c 'for i in $(seq 1 90); do (echo > /dev/tcp/$DB_WAIT_HOST/$DB_WAIT_PORT) 2>/dev/null && break; echo \"waiting for postgres ($i/90)\"; sleep 2; done; exec windmill'",
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "image": "ghcr.io/windmill-labs/windmill:1.805.0"
                  },
                  "variables": {
                    "MODE": {
                      "isOptional": false,
                      "description": "server = API + web UI; runs the DB migrations on boot (workers forced to 0).",
                      "defaultValue": "server"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port the server binds; Railway routes traffic and the healthcheck here.",
                      "defaultValue": "8000"
                    },
                    "BASE_URL": {
                      "isOptional": false,
                      "description": "Public URL of this instance; used for webhooks, emails and the SDK base handed to jobs.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Full Postgres connection string; sslmode=disable for the plain private database.",
                      "defaultValue": "postgresql://postgres:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/windmill?sslmode=disable"
                    },
                    "DB_WAIT_HOST": {
                      "isOptional": false,
                      "description": "Postgres host the boot wait-loop probes.",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_WAIT_PORT": {
                      "isOptional": false,
                      "description": "Postgres port the boot wait-loop probes before the server starts.",
                      "defaultValue": "5432"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Windmill",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T10:14:42.516Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T18:49:51.875Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_e8d6afe802f945af8725",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 107,
    "typical_build_seconds": 0,
    "typical_start_seconds": 30,
    "slowest_service": "Windmill"
  }
}
