{
  "manifest_version": "1.0.0",
  "template": {
    "id": "bfe3a53d-203f-4fa4-be6a-51df0104ce52",
    "slug": "documenso-or-just-updated-docusign-alter",
    "name": "Documenso | (Just Updated) DocuSign Alternative Whose Signed Documents Actually Complete",
    "description": "E-signing that actually seals: per-deploy certificate, admin already seeded",
    "url": "https://railway.com/deploy/documenso-or-just-updated-docusign-alter",
    "upstream": {
      "image": "ghcr.io/bon5co/documenso-railway:2.16.0"
    }
  },
  "services": [
    {
      "name": "documenso",
      "source": {
        "image": "ghcr.io/bon5co/documenso-railway:2.16.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/opt/documenso",
      "http": true
    },
    {
      "name": "postgres",
      "source": {
        "image": "postgres:17-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "NEXTAUTH_SECRET",
      "service": "documenso",
      "description": "Provide a value for NEXTAUTH_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DOCUMENSO_ADMIN_EMAIL",
      "service": "documenso",
      "description": "Provide a value for DOCUMENSO_ADMIN_EMAIL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_WEBAPP_URL",
      "service": "documenso",
      "description": "Provide a value for NEXT_PUBLIC_WEBAPP_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DOCUMENSO_ADMIN_PASSWORD",
      "service": "documenso",
      "description": "Provide a value for DOCUMENSO_ADMIN_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "NEXT_PRIVATE_DATABASE_URL",
      "service": "documenso",
      "description": "Provide a value for NEXT_PRIVATE_DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NEXT_PRIVATE_ENCRYPTION_KEY",
      "service": "documenso",
      "description": "Provide a value for NEXT_PRIVATE_ENCRYPTION_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NEXT_PRIVATE_SIGNING_PASSPHRASE",
      "service": "documenso",
      "description": "Provide a value for NEXT_PRIVATE_SIGNING_PASSPHRASE.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NEXT_PRIVATE_DIRECT_DATABASE_URL",
      "service": "documenso",
      "description": "Provide a value for NEXT_PRIVATE_DIRECT_DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NEXT_PRIVATE_ENCRYPTION_SECONDARY_KEY",
      "service": "documenso",
      "description": "Provide a value for NEXT_PRIVATE_ENCRYPTION_SECONDARY_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "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": "documenso-or-just-updated-docusign-alter"
      }
    },
    "cli": "railway deploy --template documenso-or-just-updated-docusign-alter",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "bfe3a53d-203f-4fa4-be6a-51df0104ce52",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "472b5cf7-3f41-4035-8bbd-e93c265b8381": {
                  "icon": null,
                  "name": "documenso",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/documenso-railway:2.16.0"
                  },
                  "variables": {
                    "NEXTAUTH_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{NEXTAUTH_SECRET}}"
                    },
                    "DOCUMENSO_ADMIN_EMAIL": {
                      "isOptional": false,
                      "defaultValue": "admin@${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NEXT_PUBLIC_WEBAPP_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DOCUMENSO_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{DOCUMENSO_ADMIN_PASSWORD}}"
                    },
                    "NEXT_PRIVATE_DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "postgresql://postgres:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/postgres"
                    },
                    "NEXT_PRIVATE_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{NEXT_PRIVATE_ENCRYPTION_KEY}}"
                    },
                    "NEXT_PRIVATE_SIGNING_PASSPHRASE": {
                      "isOptional": false,
                      "defaultValue": "{{NEXT_PRIVATE_SIGNING_PASSPHRASE}}"
                    },
                    "NEXT_PRIVATE_DIRECT_DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "postgresql://postgres:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/postgres"
                    },
                    "NEXT_PRIVATE_ENCRYPTION_SECONDARY_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{NEXT_PRIVATE_ENCRYPTION_SECONDARY_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "472b5cf7-3f41-4035-8bbd-e93c265b8381": {
                      "mountPath": "/opt/documenso"
                    }
                  }
                },
                "e62d31dd-1dd7-4a7f-80d6-3fd62c643223": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17-alpine"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "e62d31dd-1dd7-4a7f-80d6-3fd62c643223": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "documenso",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-04T17:54:19.363Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T13:36:05.845Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_3123258662784a21996c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 137,
    "typical_build_seconds": 0,
    "typical_start_seconds": 40,
    "slowest_service": "documenso"
  }
}
