{
  "manifest_version": "1.0.0",
  "template": {
    "id": "94c5f904-0e19-453e-a163-e5ad6b7b6794",
    "slug": "radicale-caldav",
    "name": "Radicale",
    "description": "Calendar, task and contact server that syncs to your phone and laptop",
    "url": "https://railway.com/deploy/radicale-caldav",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/radicale-railway"
    }
  },
  "services": [
    {
      "name": "radicale",
      "source": {
        "repo": "https://github.com/gridalpha/radicale-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "radicale",
      "description": "Port the health endpoint listens on",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "RADICALE_PORT",
      "service": "radicale",
      "description": "Port Radicale serves CalDAV/CardDAV on",
      "secret": false,
      "strategy": "default",
      "default": "5232"
    },
    {
      "key": "RADICALE_LOG_LEVEL",
      "service": "radicale",
      "description": "Logging threshold",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "RADICALE_RIGHTS_TYPE",
      "service": "radicale",
      "description": "Per-account collection permissions",
      "secret": false,
      "strategy": "default",
      "default": "owner_only"
    },
    {
      "key": "RADICALE_ADMIN_PASSWORD",
      "service": "radicale",
      "description": "Password for the first account",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RADICALE_ADMIN_USERNAME",
      "service": "radicale",
      "description": "Login for the first account",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "RADICALE_GIT_VERSIONING",
      "service": "radicale",
      "description": "Commit every storage change to git",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RADICALE_MAX_CONNECTIONS",
      "service": "radicale",
      "description": "Parallel connections accepted",
      "secret": false,
      "strategy": "default",
      "default": "32"
    },
    {
      "key": "RADICALE_HTPASSWD_ENCRYPTION",
      "service": "radicale",
      "description": "Hash used in the password file",
      "secret": false,
      "strategy": "default",
      "default": "bcrypt"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "radicale-caldav"
      }
    },
    "cli": "railway deploy --template radicale-caldav",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "94c5f904-0e19-453e-a163-e5ad6b7b6794",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "c2bb978a-aefc-4b35-b9a0-4b1c7ae5d1d0": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/radicale.svg",
                  "name": "radicale",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/radicale-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the health endpoint listens on",
                      "defaultValue": "8080"
                    },
                    "RADICALE_PORT": {
                      "isOptional": false,
                      "description": "Port Radicale serves CalDAV/CardDAV on",
                      "defaultValue": "5232"
                    },
                    "RADICALE_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Logging threshold",
                      "defaultValue": "info"
                    },
                    "RADICALE_EXTRA_USERS": {
                      "isOptional": true,
                      "description": "More logins as user:password, comma separated",
                      "defaultValue": ""
                    },
                    "RADICALE_RIGHTS_TYPE": {
                      "isOptional": false,
                      "description": "Per-account collection permissions",
                      "defaultValue": "owner_only"
                    },
                    "RADICALE_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the first account",
                      "defaultValue": "{{RADICALE_ADMIN_PASSWORD}}"
                    },
                    "RADICALE_ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "Login for the first account",
                      "defaultValue": "admin"
                    },
                    "RADICALE_GIT_VERSIONING": {
                      "isOptional": false,
                      "description": "Commit every storage change to git",
                      "defaultValue": "true"
                    },
                    "RADICALE_MAX_CONNECTIONS": {
                      "isOptional": false,
                      "description": "Parallel connections accepted",
                      "defaultValue": "32"
                    },
                    "RADICALE_HTPASSWD_ENCRYPTION": {
                      "isOptional": false,
                      "description": "Hash used in the password file",
                      "defaultValue": "bcrypt"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5232": {
                        "port": 5232
                      }
                    }
                  },
                  "volumeMounts": {
                    "c2bb978a-aefc-4b35-b9a0-4b1c7ae5d1d0": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "radicale",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-16T22:14:52.145Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-16T20:20:31.533Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_e2b5e4b072f34e61ad0b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": false,
        "detail": "got 401, expected 200"
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ]
  }
}
