{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9b5a99a7-e887-42c4-a1a2-5bd6190753dd",
    "slug": "docuseal-open-source-docusign-alternativ",
    "name": "DocuSeal (Open-Source DocuSign Alternative)",
    "description": "Open-source DocuSign alternative. Sign PDFs legally. Postgres included.",
    "url": "https://railway.com/deploy/docuseal-open-source-docusign-alternativ",
    "upstream": {
      "image": "docuseal/docuseal:3.1.5"
    }
  },
  "services": [
    {
      "name": "docuseal",
      "source": {
        "image": "docuseal/docuseal:3.1.5"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "HOST",
      "service": "docuseal",
      "description": "Public hostname of this DocuSeal instance.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "docuseal",
      "description": "Postgres connection string over private networking.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "docuseal",
      "description": "Auto-generated Rails secret key base.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Postgres data directory inside the mounted volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name created on first boot.",
      "secret": false,
      "strategy": "default",
      "default": "docuseal"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Connection string used by DocuSeal over private networking.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user for DocuSeal.",
      "secret": false,
      "strategy": "default",
      "default": "docuseal"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated database password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "docuseal-open-source-docusign-alternativ"
      }
    },
    "cli": "railway deploy --template docuseal-open-source-docusign-alternativ",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9b5a99a7-e887-42c4-a1a2-5bd6190753dd",
            "serializedConfig": {
              "services": {
                "41556af9-a287-4206-86e9-0d083e5639f4": {
                  "name": "docuseal",
                  "deploy": {
                    "healthcheckPath": "/up"
                  },
                  "source": {
                    "image": "docuseal/docuseal:3.1.5"
                  },
                  "variables": {
                    "HOST": {
                      "description": "Public hostname of this DocuSeal instance.",
                      "defaultValue": "${{ RAILWAY_PUBLIC_DOMAIN }}"
                    },
                    "DATABASE_URL": {
                      "description": "Postgres connection string over private networking.",
                      "defaultValue": "${{ Postgres.DATABASE_URL }}"
                    },
                    "SECRET_KEY_BASE": {
                      "description": "Auto-generated Rails secret key base.",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "41556af9-a287-4206-86e9-0d083e5639f4": {
                      "mountPath": "/data"
                    }
                  }
                },
                "7ca5beec-de87-4ce5-8275-628e1d5494a6": {
                  "name": "Postgres",
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "description": "Postgres data directory inside the mounted volume.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "description": "Database name created on first boot.",
                      "defaultValue": "docuseal"
                    },
                    "DATABASE_URL": {
                      "description": "Connection string used by DocuSeal over private networking.",
                      "defaultValue": "postgresql://${{ POSTGRES_USER }}:${{ POSTGRES_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:5432/${{ POSTGRES_DB }}"
                    },
                    "POSTGRES_USER": {
                      "description": "Database user for DocuSeal.",
                      "defaultValue": "docuseal"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "Auto-generated database password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "7ca5beec-de87-4ce5-8275-628e1d5494a6": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "docuseal",
      "method": "GET",
      "path": "/up",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-20T05:36:56.201Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_cb5b78aeed484675b741",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": false,
        "detail": "got 502, expected 200"
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ]
  }
}
