{
  "manifest_version": "1.0.0",
  "template": {
    "id": "19b3c115-22ac-4b0a-8fe2-b85207d02505",
    "slug": "limesurvey-1",
    "name": "LimeSurvey",
    "description": "Self-hosted surveys with branching logic and statistics",
    "url": "https://railway.com/deploy/limesurvey-1",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/limesurvey"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "postgres",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/limesurvey"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "limesurvey",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/limesurvey"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DB_HOST",
      "service": "limesurvey",
      "description": "Provide a value for DB_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_PASSWORD",
      "service": "limesurvey",
      "description": "Provide a value for DB_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "limesurvey",
      "description": "Provide a value for ADMIN_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "limesurvey-1"
      }
    },
    "cli": "railway deploy --template limesurvey-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "19b3c115-22ac-4b0a-8fe2-b85207d02505",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "213c445d-75c3-4c1d-bfa3-761258672d27": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/limesurvey",
                    "rootDirectory": "postgres"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "213c445d-75c3-4c1d-bfa3-761258672d27": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "251845fb-e365-4c8a-a7bf-b6c91189a25b": {
                  "icon": null,
                  "name": "limesurvey",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthcheck",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/limesurvey",
                    "rootDirectory": null
                  },
                  "variables": {
                    "DB_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "251845fb-e365-4c8a-a7bf-b6c91189a25b": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "limesurvey",
      "method": "GET",
      "path": "/healthcheck",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-31T16:15:08.794Z",
  "generator_version": "0.1.0"
}
