{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2d9e861e-da0b-413d-b1c3-be71ef3604f2",
    "slug": "obsidian-livesync-couchdb-v3521-or-admin",
    "name": "Obsidian LiveSync CouchDB | (Just Updated) Admin Password Survives Every Redeploy",
    "description": "CouchDB for Obsidian sync; admin password survives every redeploy",
    "url": "https://railway.com/deploy/obsidian-livesync-couchdb-v3521-or-admin",
    "upstream": {
      "image": "ghcr.io/bon5co/obsidian-livesync-railway:latest"
    }
  },
  "services": [
    {
      "name": "couchdb",
      "source": {
        "image": "ghcr.io/bon5co/obsidian-livesync-railway:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/opt/couchdb/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "COUCHDB_SECRET",
      "service": "couchdb",
      "description": "Provide a value for COUCHDB_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "COUCHDB_PASSWORD",
      "service": "couchdb",
      "description": "Provide a value for COUCHDB_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "obsidian-livesync-couchdb-v3521-or-admin"
      }
    },
    "cli": "railway deploy --template obsidian-livesync-couchdb-v3521-or-admin",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2d9e861e-da0b-413d-b1c3-be71ef3604f2",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "38ccdeb7-90c1-442d-ab00-1f4f7cc1bf1d": {
                  "icon": null,
                  "name": "couchdb",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/_up",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/obsidian-livesync-railway:latest"
                  },
                  "variables": {
                    "COUCHDB_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{COUCHDB_SECRET}}"
                    },
                    "COUCHDB_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{COUCHDB_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "38ccdeb7-90c1-442d-ab00-1f4f7cc1bf1d": {
                      "mountPath": "/opt/couchdb/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "couchdb",
      "method": "GET",
      "path": "/_up",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T04:14:37.968Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-17T11:29:49.565Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c26d2e0469e2491fb931",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 91,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "couchdb"
  }
}
