{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b0b0a820-7ae9-42a2-b4cf-77fd5eaaacaf",
    "slug": "docuseal-document--1",
    "name": "DocuSeal Document Signing",
    "description": "Document signing with PostgreSQL and an administrator created at startup.",
    "url": "https://railway.com/deploy/docuseal-document--1",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "docuseal",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/docuseal",
      "http": true
    },
    {
      "name": "postgres",
      "source": {
        "image": "postgres:17-alpine@sha256:18cfe3ef5e6815560c98237d6216d1e5119702fb0f3894c8785dd58b8bbe5d73"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "FORCE_SSL",
      "service": "docuseal",
      "description": "Force ssl resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILS_ENV",
      "service": "docuseal",
      "description": "Rails env for docuseal. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "PUBLIC_URL",
      "service": "docuseal",
      "description": "Public url resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "docuseal",
      "description": "Required first administrator email. Created before the public listener opens.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "ACCOUNT_NAME",
      "service": "docuseal",
      "description": "Account name for docuseal. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "My organization"
    },
    {
      "key": "DATABASE_URL",
      "service": "docuseal",
      "description": "Private PostgreSQL connection URL assembled from generated credentials and service references. No manual value is needed.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "docuseal",
      "description": "Generated admin password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "docuseal",
      "description": "Generated application signing secret. Preserve across restarts and backup restores.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SIDEKIQ_THREADS",
      "service": "docuseal",
      "description": "Sidekiq threads for docuseal. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "RAILS_MAX_THREADS",
      "service": "docuseal",
      "description": "Maximum Rails request threads. Tune with available memory and database capacity.",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "docuseal",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/docuseal/Dockerfile"
    },
    {
      "key": "SIDEKIQ_BASIC_AUTH_PASSWORD",
      "service": "docuseal",
      "description": "Generated sidekiq basic auth password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "PostgreSQL data directory within the persistent volume. Do not change on an existing database.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGPORT",
      "service": "postgres",
      "description": "Pgport for postgres. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Initial PostgreSQL database name, or the matching database selected by the application.",
      "secret": false,
      "strategy": "default",
      "default": "docuseal"
    },
    {
      "key": "DATABASE_URL",
      "service": "postgres",
      "description": "Private PostgreSQL connection URL assembled from generated credentials and service references. No manual value is needed.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "PostgreSQL initialization user, or the matching connection user for the private database.",
      "secret": false,
      "strategy": "default",
      "default": "docuseal"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "PostgreSQL password. Generated for the database and referenced by dependent services; keep private.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "docuseal-document--1"
      }
    },
    "cli": "railway deploy --template docuseal-document--1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b0b0a820-7ae9-42a2-b4cf-77fd5eaaacaf",
            "serializedConfig": {
              "services": {
                "8feaebb9-5525-5e61-9353-5a8cd84fa8e0": {
                  "name": "docuseal",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/docuseal/Dockerfile"
                  },
                  "deploy": {
                    "requiredMountPath": "/data/docuseal",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/fifteen-template-drafts"
                  },
                  "variables": {
                    "FORCE_SSL": {
                      "isOptional": false,
                      "description": "Force ssl resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{docuseal.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILS_ENV": {
                      "isOptional": false,
                      "description": "Rails env for docuseal. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "production"
                    },
                    "PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public url resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "https://${{docuseal.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Required first administrator email. Created before the public listener opens.",
                      "defaultValue": "{{ADMIN_EMAIL}}"
                    },
                    "ACCOUNT_NAME": {
                      "isOptional": false,
                      "description": "Account name for docuseal. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "My organization"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private PostgreSQL connection URL assembled from generated credentials and service references. No manual value is needed.",
                      "defaultValue": "${{postgres.DATABASE_URL}}"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated admin password. Keep private and preserve with backups.",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Generated application signing secret. Preserve across restarts and backup restores.",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "SIDEKIQ_THREADS": {
                      "isOptional": false,
                      "description": "Sidekiq threads for docuseal. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "2"
                    },
                    "RAILS_MAX_THREADS": {
                      "isOptional": false,
                      "description": "Maximum Rails request threads. Tune with available memory and database capacity.",
                      "defaultValue": "5"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/docuseal/Dockerfile"
                    },
                    "SIDEKIQ_BASIC_AUTH_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated sidekiq basic auth password. Keep private and preserve with backups.",
                      "defaultValue": "{{SIDEKIQ_BASIC_AUTH_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "a53aa11e-845e-5556-b8db-b382652ef429": {
                      "mountPath": "/data/docuseal"
                    }
                  }
                },
                "a0ce1c86-5755-5280-97ce-2b24b693faf6": {
                  "name": "postgres",
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17-alpine@sha256:18cfe3ef5e6815560c98237d6216d1e5119702fb0f3894c8785dd58b8bbe5d73"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "PostgreSQL data directory within the persistent volume. Do not change on an existing database.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Pgport for postgres. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "5432"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Initial PostgreSQL database name, or the matching database selected by the application.",
                      "defaultValue": "docuseal"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private PostgreSQL connection URL assembled from generated credentials and service references. No manual value is needed.",
                      "defaultValue": "postgresql://docuseal:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/docuseal"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL initialization user, or the matching connection user for the private database.",
                      "defaultValue": "docuseal"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL password. Generated for the database and referenced by dependent services; keep private.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "fce22db3-b075-5a94-ba1f-d1525bbeaff1": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-13T22:14:35.692Z",
  "generator_version": "0.1.0"
}
