{
  "manifest_version": "1.0.0",
  "template": {
    "id": "04d7279d-17bb-4455-b674-8b87c2f2087b",
    "slug": "nextcloud-or-just-updated-google-drive-a",
    "name": "Nextcloud | (Just Updated) Google Drive Alternative Whose Background Jobs Actually Run",
    "description": "Google Drive alternative whose background jobs and login throttle work",
    "url": "https://railway.com/deploy/nextcloud-or-just-updated-google-drive-a",
    "upstream": {
      "image": "ghcr.io/bon5co/nextcloud-railway:34.0.2"
    }
  },
  "services": [
    {
      "name": "nextcloud",
      "source": {
        "image": "ghcr.io/bon5co/nextcloud-railway:34.0.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/html",
      "http": true
    },
    {
      "name": "postgres",
      "source": {
        "image": "postgres:17.10-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "redis",
      "source": {
        "image": "redis:7.4-alpine"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDIS_HOST",
      "service": "nextcloud",
      "description": "Provide a value for REDIS_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "nextcloud",
      "description": "Provide a value for POSTGRES_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "nextcloud",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTCLOUD_ADMIN_PASSWORD",
      "service": "nextcloud",
      "description": "Provide a value for NEXTCLOUD_ADMIN_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "NEXTCLOUD_TRUSTED_DOMAINS",
      "service": "nextcloud",
      "description": "Provide a value for NEXTCLOUD_TRUSTED_DOMAINS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nextcloud-or-just-updated-google-drive-a"
      }
    },
    "cli": "railway deploy --template nextcloud-or-just-updated-google-drive-a",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "04d7279d-17bb-4455-b674-8b87c2f2087b",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2c2134fa-45f6-42b5-bbbb-97288871d8ed": {
                  "icon": null,
                  "name": "nextcloud",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/nextcloud-railway:34.0.2"
                  },
                  "variables": {
                    "REDIS_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "NEXTCLOUD_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{NEXTCLOUD_ADMIN_PASSWORD}}"
                    },
                    "NEXTCLOUD_TRUSTED_DOMAINS": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "2c2134fa-45f6-42b5-bbbb-97288871d8ed": {
                      "mountPath": "/var/www/html"
                    }
                  }
                },
                "727d99e0-208a-4a56-b0c4-06020e937cce": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17.10-alpine"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "727d99e0-208a-4a56-b0c4-06020e937cce": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "cfff7fe1-7762-476a-9f31-8cd53ebe44a1": {
                  "icon": null,
                  "name": "redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:7.4-alpine"
                  },
                  "variables": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T04:14:46.774Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T18:47:57.364Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_10e57bd2853f4c77bc45",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 83,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "nextcloud"
  }
}
