{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ff93a1d5-efe7-450e-a371-f299a7f8cdfe",
    "slug": "windmill-or-just-updated-scripts-workflo",
    "name": "Windmill | (Just Updated) Scripts, Workflows & Internal Apps, Server + Worker + Postgres",
    "description": "Scripts, workflows & internal apps. Server, worker, Postgres, persistent",
    "url": "https://railway.com/deploy/windmill-or-just-updated-scripts-workflo",
    "upstream": {
      "image": "ghcr.io/windmill-labs/windmill:1.830.0@sha256:46016168ebe27f0916c4de5c5b174667ee01675169da999f10bc62cfd18fa1cd"
    }
  },
  "services": [
    {
      "name": "postgres",
      "source": {
        "image": "postgres:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "windmill",
      "source": {
        "image": "ghcr.io/windmill-labs/windmill:1.830.0@sha256:46016168ebe27f0916c4de5c5b174667ee01675169da999f10bc62cfd18fa1cd"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "windmill-worker",
      "source": {
        "image": "ghcr.io/windmill-labs/windmill:1.830.0@sha256:46016168ebe27f0916c4de5c5b174667ee01675169da999f10bc62cfd18fa1cd"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PG_HOST",
      "service": "windmill",
      "description": "Provide a value for PG_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "BASE_URL",
      "service": "windmill",
      "description": "Provide a value for BASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "windmill",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PG_HOST",
      "service": "windmill-worker",
      "description": "Provide a value for PG_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "windmill-worker",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "windmill-or-just-updated-scripts-workflo"
      }
    },
    "cli": "railway deploy --template windmill-or-just-updated-scripts-workflo",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ff93a1d5-efe7-450e-a371-f299a7f8cdfe",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3c8f5bfc-9f1a-457a-83d6-917174d3bdca": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'export POSTGRES_DB=windmill; exec docker-entrypoint.sh postgres'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:18"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "3c8f5bfc-9f1a-457a-83d6-917174d3bdca": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "4b65d83d-6ad8-4164-ab7e-02b55a603b2c": {
                  "icon": null,
                  "name": "windmill",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'export MODE=server DATABASE_URL=\"postgres://postgres:${POSTGRES_PASSWORD}@${PG_HOST}:5432/windmill?sslmode=disable\"; exec windmill'",
                    "healthcheckPath": "/api/version",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/windmill-labs/windmill:1.830.0@sha256:46016168ebe27f0916c4de5c5b174667ee01675169da999f10bc62cfd18fa1cd"
                  },
                  "variables": {
                    "PG_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "BASE_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "e9226f91-80f5-48f0-ba7d-c03f2ab64359": {
                  "icon": null,
                  "name": "windmill-worker",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'export MODE=worker WORKER_GROUP=default DATABASE_URL=\"postgres://postgres:${POSTGRES_PASSWORD}@${PG_HOST}:5432/windmill?sslmode=disable\"; exec windmill'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/windmill-labs/windmill:1.830.0@sha256:46016168ebe27f0916c4de5c5b174667ee01675169da999f10bc62cfd18fa1cd"
                  },
                  "variables": {
                    "PG_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "windmill",
      "method": "GET",
      "path": "/api/version",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-10-13T04:14:42.102Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-13T01:12:30.430Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_65b45c627e4b44b080f8",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 48,
    "typical_build_seconds": 0,
    "typical_start_seconds": 30,
    "slowest_service": "windmill"
  }
}
