{
  "manifest_version": "1.0.0",
  "template": {
    "id": "707e227a-26ff-4e5b-9f70-0b12cba76dcd",
    "slug": "documenso-v2-document-signing",
    "name": "Documenso v2 Document Signing",
    "description": "Send and sign PDFs with audit trails. Self-hosted DocuSign alternative.",
    "url": "https://railway.com/deploy/documenso-v2-document-signing",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/documenso-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Gotenberg",
      "source": {
        "image": "gotenberg/gotenberg:8.37.0-libreoffice"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Documenso",
      "source": {
        "repo": "https://github.com/baranberkay96/documenso-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/opt/documenso",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port that Redis listens on.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Username for authenticating with Redis.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Connection string for connecting to Redis using the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Randomly generated password for authenticating with Redis.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Gotenberg",
      "description": "Port Gotenberg listens on ([::], dual-stack); used for the healthcheck.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "GOTENBERG_API_BASIC_AUTH_PASSWORD",
      "service": "Gotenberg",
      "description": "Basic-auth password Documenso uses for conversions.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GOTENBERG_API_BASIC_AUTH_USERNAME",
      "service": "Gotenberg",
      "description": "Basic-auth user Documenso uses for conversions.",
      "secret": false,
      "strategy": "default",
      "default": "documenso"
    },
    {
      "key": "PORT",
      "service": "Documenso",
      "description": "Port the Documenso server listens on; Railway routes traffic and healthchecks here.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "NEXTAUTH_SECRET",
      "service": "Documenso",
      "description": "Signs sessions and CSRF cookies. Changing it signs everyone out.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SIGNING_CERT_DAYS",
      "service": "Documenso",
      "description": "Validity of the self-signed certificate in days.",
      "secret": false,
      "strategy": "default",
      "default": "3650"
    },
    {
      "key": "DOCUMENSO_ADMIN_NAME",
      "service": "Documenso",
      "description": "Display name of the first administrator.",
      "secret": false,
      "strategy": "default",
      "default": "Administrator"
    },
    {
      "key": "DOCUMENSO_ADMIN_EMAIL",
      "service": "Documenso",
      "description": "E-mail of the first administrator. The template creates this account (verified, ADMIN role) on first boot so you can sign in without an e-mail provider.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "NEXT_PRIVATE_REDIS_URL",
      "service": "Documenso",
      "description": "Redis for the BullMQ job queue. family=0 lets ioredis use IPv4 or IPv6 on the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PRIVATE_SMTP_PORT",
      "service": "Documenso",
      "description": "SMTP port (587 STARTTLS, 465 TLS).",
      "secret": false,
      "strategy": "default",
      "default": "587"
    },
    {
      "key": "NEXT_PUBLIC_WEBAPP_URL",
      "service": "Documenso",
      "description": "Public URL (links in e-mails, signing pages, CSRF origin). Change it when you add a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DOCUMENSO_ADMIN_PASSWORD",
      "service": "Documenso",
      "description": "Password of the first administrator (used once at creation; change it in your profile afterwards).",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SIGNING_CERT_COMMON_NAME",
      "service": "Documenso",
      "description": "Common name of the self-signed certificate created at first boot (shown in PDF signature panels).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PRIVATE_DATABASE_URL",
      "service": "Documenso",
      "description": "Postgres connection string (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PRIVATE_REDIS_PREFIX",
      "service": "Documenso",
      "description": "Key prefix for the job queues.",
      "secret": false,
      "strategy": "default",
      "default": "documenso"
    },
    {
      "key": "SIGNING_CERT_ORGANIZATION",
      "service": "Documenso",
      "description": "Organization name in the self-signed certificate. Set your company name before the first deploy.",
      "secret": false,
      "strategy": "default",
      "default": "Documenso Self-Hosted"
    },
    {
      "key": "NEXT_PRIVATE_JOBS_PROVIDER",
      "service": "Documenso",
      "description": "Background jobs (e-mails, sealing, webhooks, reminders) on BullMQ + Redis, upstream's recommended self-hosted production provider.",
      "secret": false,
      "strategy": "default",
      "default": "bullmq"
    },
    {
      "key": "NEXT_PRIVATE_UPLOAD_BUCKET",
      "service": "Documenso",
      "description": "Bucket name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PRIVATE_UPLOAD_REGION",
      "service": "Documenso",
      "description": "Bucket region.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PUBLIC_DISABLE_SIGNUP",
      "service": "Documenso",
      "description": "Set true to disable all new sign-ups once your team is in (the admin account is created by the bootstrap).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DOCUMENSO_DISABLE_TELEMETRY",
      "service": "Documenso",
      "description": "Opt out of Documenso's anonymous instance telemetry (version and installation ID). Set false to share it.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NEXT_PRIVATE_ENCRYPTION_KEY",
      "service": "Documenso",
      "description": "Primary key (min. 32 characters) for encrypted fields such as 2FA secrets and API tokens. Never change it after first boot.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NEXT_PRIVATE_SMTP_FROM_NAME",
      "service": "Documenso",
      "description": "Sender display name for e-mails.",
      "secret": false,
      "strategy": "default",
      "default": "Documenso"
    },
    {
      "key": "NEXT_PRIVATE_UPLOAD_ENDPOINT",
      "service": "Documenso",
      "description": "S3 endpoint (Railway Bucket).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PUBLIC_UPLOAD_TRANSPORT",
      "service": "Documenso",
      "description": "Store documents in the Railway Bucket (s3). Set to database to keep them in Postgres instead.",
      "secret": false,
      "strategy": "default",
      "default": "s3"
    },
    {
      "key": "NEXT_PRIVATE_SIGNING_TRANSPORT",
      "service": "Documenso",
      "description": "Sign with a local .p12 certificate (created on the volume at first boot).",
      "secret": false,
      "strategy": "default",
      "default": "local"
    },
    {
      "key": "NEXT_PRIVATE_SIGNING_PASSPHRASE",
      "service": "Documenso",
      "description": "Passphrase protecting the signing certificate. The certificate on the volume only opens with this value: do not change it after first boot.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NEXT_PRIVATE_DIRECT_DATABASE_URL",
      "service": "Documenso",
      "description": "Direct connection used by Prisma migrations (same as above without a pooler).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PRIVATE_UPLOAD_ACCESS_KEY_ID",
      "service": "Documenso",
      "description": "Bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PRIVATE_DOCUMENT_CONVERSION_URL",
      "service": "Documenso",
      "description": "Gotenberg service that converts uploaded .docx files to PDF (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NEXT_PRIVATE_SIGNING_LOCAL_FILE_PATH",
      "service": "Documenso",
      "description": "Certificate path on the volume. Replace the file (or set NEXT_PRIVATE_SIGNING_LOCAL_FILE_CONTENTS to a base64 .p12) to use a CA-issued certificate.",
      "secret": false,
      "strategy": "default",
      "default": "/opt/documenso/cert.p12"
    },
    {
      "key": "NEXT_PRIVATE_UPLOAD_FORCE_PATH_STYLE",
      "service": "Documenso",
      "description": "Railway Buckets use virtual-hosted URLs; set true only for a legacy bucket that requires path-style.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "NEXT_PRIVATE_ENCRYPTION_SECONDARY_KEY",
      "service": "Documenso",
      "description": "Secondary encryption key (min. 32 characters). Never change it after first boot.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NEXT_PRIVATE_UPLOAD_SECRET_ACCESS_KEY",
      "service": "Documenso",
      "description": "Bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PUBLIC_DOCUMENT_SIZE_UPLOAD_LIMIT",
      "service": "Documenso",
      "description": "Maximum document upload size in MB.",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "NEXT_PRIVATE_DOCUMENT_CONVERSION_PASSWORD",
      "service": "Documenso",
      "description": "Shared with Gotenberg: references its basic-auth password (edit it there).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PRIVATE_DOCUMENT_CONVERSION_USERNAME",
      "service": "Documenso",
      "description": "Shared with Gotenberg: references its basic-auth user (edit it there).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "documenso-v2-document-signing"
      }
    },
    "cli": "railway deploy --template documenso-v2-document-signing",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "707e227a-26ff-4e5b-9f70-0b12cba76dcd",
            "serializedConfig": {
              "buckets": {
                "56d68eac-8ba4-5043-af7a-f2c83b798ecf": {
                  "name": "Bucket"
                }
              },
              "services": {
                "9523755d-35de-55d7-ac05-a3d927aa33f3": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH --maxmemory-policy noeviction\"",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": true,
                      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": true,
                      "description": "Port that Redis listens on.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": true,
                      "description": "Username for authenticating with Redis.",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": true,
                      "description": "Connection string for connecting to Redis using the private network.",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": true,
                      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name.",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": true,
                      "description": "Randomly generated password for authenticating with Redis.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "b860609e-2082-545f-a09b-39fce39024c2": {
                      "mountPath": "/data"
                    }
                  }
                },
                "9b467805-7cca-5684-a93d-7bf8f05e9ecc": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/libreoffice.svg",
                  "name": "Gotenberg",
                  "deploy": {
                    "startCommand": "gotenberg --api-enable-basic-auth --libreoffice-deny-private-ips --api-timeout=500s --libreoffice-auto-start --libreoffice-start-timeout=300s --pdfengines-disable-routes --webhook-disable",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "gotenberg/gotenberg:8.37.0-libreoffice"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port Gotenberg listens on ([::], dual-stack); used for the healthcheck.",
                      "defaultValue": "3000"
                    },
                    "GOTENBERG_API_BASIC_AUTH_PASSWORD": {
                      "isOptional": true,
                      "description": "Basic-auth password Documenso uses for conversions.",
                      "defaultValue": "{{GOTENBERG_API_BASIC_AUTH_PASSWORD}}"
                    },
                    "GOTENBERG_API_BASIC_AUTH_USERNAME": {
                      "isOptional": true,
                      "description": "Basic-auth user Documenso uses for conversions.",
                      "defaultValue": "documenso"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "9fedda72-af58-5914-8df3-24f628962be2": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/documenso.svg",
                  "name": "Documenso",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/api/health",
                    "preDeployCommand": [
                      "/usr/local/bin/documenso-migrate.sh"
                    ],
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 900,
                    "preDeployTimeoutSeconds": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/documenso-railway",
                    "branch": "main",
                    "rootDirectory": "/services/documenso"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port the Documenso server listens on; Railway routes traffic and healthchecks here.",
                      "defaultValue": "3000"
                    },
                    "NEXTAUTH_SECRET": {
                      "isOptional": true,
                      "description": "Signs sessions and CSRF cookies. Changing it signs everyone out.",
                      "defaultValue": "{{NEXTAUTH_SECRET}}"
                    },
                    "SIGNING_CERT_DAYS": {
                      "isOptional": true,
                      "description": "Validity of the self-signed certificate in days.",
                      "defaultValue": "3650"
                    },
                    "DOCUMENSO_ADMIN_NAME": {
                      "isOptional": true,
                      "description": "Display name of the first administrator.",
                      "defaultValue": "Administrator"
                    },
                    "DOCUMENSO_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "E-mail of the first administrator. The template creates this account (verified, ADMIN role) on first boot so you can sign in without an e-mail provider.",
                      "defaultValue": "{{DOCUMENSO_ADMIN_EMAIL}}"
                    },
                    "NEXT_PRIVATE_REDIS_URL": {
                      "isOptional": true,
                      "description": "Redis for the BullMQ job queue. family=0 lets ioredis use IPv4 or IPv6 on the private network.",
                      "defaultValue": "${{Redis.REDIS_URL}}?family=0"
                    },
                    "NEXT_PRIVATE_SMTP_HOST": {
                      "isOptional": true,
                      "description": "SMTP host (outbound SMTP needs Railway Pro). Optional.",
                      "defaultValue": ""
                    },
                    "NEXT_PRIVATE_SMTP_PORT": {
                      "isOptional": true,
                      "description": "SMTP port (587 STARTTLS, 465 TLS).",
                      "defaultValue": "587"
                    },
                    "NEXT_PUBLIC_WEBAPP_URL": {
                      "isOptional": true,
                      "description": "Public URL (links in e-mails, signing pages, CSRF origin). Change it when you add a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DOCUMENSO_ADMIN_PASSWORD": {
                      "isOptional": true,
                      "description": "Password of the first administrator (used once at creation; change it in your profile afterwards).",
                      "defaultValue": "{{DOCUMENSO_ADMIN_PASSWORD}}"
                    },
                    "NEXT_PRIVATE_SMTP_SECURE": {
                      "isOptional": true,
                      "description": "Set true for implicit TLS (port 465). Optional.",
                      "defaultValue": ""
                    },
                    "SIGNING_CERT_COMMON_NAME": {
                      "isOptional": true,
                      "description": "Common name of the self-signed certificate created at first boot (shown in PDF signature panels).",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NEXT_PRIVATE_DATABASE_URL": {
                      "isOptional": true,
                      "description": "Postgres connection string (private network).",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NEXT_PRIVATE_REDIS_PREFIX": {
                      "isOptional": true,
                      "description": "Key prefix for the job queues.",
                      "defaultValue": "documenso"
                    },
                    "SIGNING_CERT_ORGANIZATION": {
                      "isOptional": true,
                      "description": "Organization name in the self-signed certificate. Set your company name before the first deploy.",
                      "defaultValue": "Documenso Self-Hosted"
                    },
                    "NEXT_PRIVATE_JOBS_PROVIDER": {
                      "isOptional": true,
                      "description": "Background jobs (e-mails, sealing, webhooks, reminders) on BullMQ + Redis, upstream's recommended self-hosted production provider.",
                      "defaultValue": "bullmq"
                    },
                    "NEXT_PRIVATE_SMTP_PASSWORD": {
                      "isOptional": true,
                      "description": "SMTP password. Optional.",
                      "defaultValue": ""
                    },
                    "NEXT_PRIVATE_SMTP_USERNAME": {
                      "isOptional": true,
                      "description": "SMTP username. Optional.",
                      "defaultValue": ""
                    },
                    "NEXT_PRIVATE_UPLOAD_BUCKET": {
                      "isOptional": true,
                      "description": "Bucket name.",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "NEXT_PRIVATE_UPLOAD_REGION": {
                      "isOptional": true,
                      "description": "Bucket region.",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "NEXT_PUBLIC_DISABLE_SIGNUP": {
                      "isOptional": true,
                      "description": "Set true to disable all new sign-ups once your team is in (the admin account is created by the bootstrap).",
                      "defaultValue": "false"
                    },
                    "DOCUMENSO_DISABLE_TELEMETRY": {
                      "isOptional": true,
                      "description": "Opt out of Documenso's anonymous instance telemetry (version and installation ID). Set false to share it.",
                      "defaultValue": "true"
                    },
                    "NEXT_PRIVATE_ENCRYPTION_KEY": {
                      "isOptional": true,
                      "description": "Primary key (min. 32 characters) for encrypted fields such as 2FA secrets and API tokens. Never change it after first boot.",
                      "defaultValue": "{{NEXT_PRIVATE_ENCRYPTION_KEY}}"
                    },
                    "NEXT_PRIVATE_RESEND_API_KEY": {
                      "isOptional": true,
                      "description": "Resend API key (HTTP e-mail API, works on every Railway plan). Recommended way to send signing requests.",
                      "defaultValue": ""
                    },
                    "NEXT_PRIVATE_SMTP_FROM_NAME": {
                      "isOptional": true,
                      "description": "Sender display name for e-mails.",
                      "defaultValue": "Documenso"
                    },
                    "NEXT_PRIVATE_SMTP_TRANSPORT": {
                      "isOptional": true,
                      "description": "E-mail transport. Empty = automatic: resend when NEXT_PRIVATE_RESEND_API_KEY is set, otherwise smtp-auth. Also accepts smtp-api and mailchannels.",
                      "defaultValue": ""
                    },
                    "NEXT_PRIVATE_UPLOAD_ENDPOINT": {
                      "isOptional": true,
                      "description": "S3 endpoint (Railway Bucket).",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "NEXT_PUBLIC_UPLOAD_TRANSPORT": {
                      "isOptional": true,
                      "description": "Store documents in the Railway Bucket (s3). Set to database to keep them in Postgres instead.",
                      "defaultValue": "s3"
                    },
                    "NEXT_PRIVATE_GOOGLE_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Optional Google OAuth client ID for 'Sign in with Google'.",
                      "defaultValue": ""
                    },
                    "NEXT_PRIVATE_SIGNING_TRANSPORT": {
                      "isOptional": true,
                      "description": "Sign with a local .p12 certificate (created on the volume at first boot).",
                      "defaultValue": "local"
                    },
                    "NEXT_PRIVATE_SMTP_FROM_ADDRESS": {
                      "isOptional": true,
                      "description": "Sender address, e.g. sign@yourcompany.com (must be a domain verified with your e-mail provider).",
                      "defaultValue": ""
                    },
                    "NEXT_PRIVATE_SIGNING_PASSPHRASE": {
                      "isOptional": true,
                      "description": "Passphrase protecting the signing certificate. The certificate on the volume only opens with this value: do not change it after first boot.",
                      "defaultValue": "{{NEXT_PRIVATE_SIGNING_PASSPHRASE}}"
                    },
                    "NEXT_PRIVATE_DIRECT_DATABASE_URL": {
                      "isOptional": true,
                      "description": "Direct connection used by Prisma migrations (same as above without a pooler).",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NEXT_PRIVATE_GOOGLE_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Optional Google OAuth client secret.",
                      "defaultValue": ""
                    },
                    "NEXT_PRIVATE_UPLOAD_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "Bucket access key.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "NEXT_PRIVATE_ALLOWED_SIGNUP_DOMAINS": {
                      "isOptional": true,
                      "description": "Comma-separated e-mail domains allowed to sign up, e.g. yourcompany.com. Empty = any domain.",
                      "defaultValue": ""
                    },
                    "NEXT_PRIVATE_DOCUMENT_CONVERSION_URL": {
                      "isOptional": true,
                      "description": "Gotenberg service that converts uploaded .docx files to PDF (private network).",
                      "defaultValue": "http://${{Gotenberg.RAILWAY_PRIVATE_DOMAIN}}:3000"
                    },
                    "NEXT_PRIVATE_SIGNING_LOCAL_FILE_PATH": {
                      "isOptional": true,
                      "description": "Certificate path on the volume. Replace the file (or set NEXT_PRIVATE_SIGNING_LOCAL_FILE_CONTENTS to a base64 .p12) to use a CA-issued certificate.",
                      "defaultValue": "/opt/documenso/cert.p12"
                    },
                    "NEXT_PRIVATE_UPLOAD_FORCE_PATH_STYLE": {
                      "isOptional": true,
                      "description": "Railway Buckets use virtual-hosted URLs; set true only for a legacy bucket that requires path-style.",
                      "defaultValue": "false"
                    },
                    "NEXT_PRIVATE_ENCRYPTION_SECONDARY_KEY": {
                      "isOptional": true,
                      "description": "Secondary encryption key (min. 32 characters). Never change it after first boot.",
                      "defaultValue": "{{NEXT_PRIVATE_ENCRYPTION_SECONDARY_KEY}}"
                    },
                    "NEXT_PRIVATE_UPLOAD_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Bucket secret key.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "NEXT_PUBLIC_DOCUMENT_SIZE_UPLOAD_LIMIT": {
                      "isOptional": true,
                      "description": "Maximum document upload size in MB.",
                      "defaultValue": "10"
                    },
                    "NEXT_PRIVATE_DOCUMENT_CONVERSION_PASSWORD": {
                      "isOptional": true,
                      "description": "Shared with Gotenberg: references its basic-auth password (edit it there).",
                      "defaultValue": "${{Gotenberg.GOTENBERG_API_BASIC_AUTH_PASSWORD}}"
                    },
                    "NEXT_PRIVATE_DOCUMENT_CONVERSION_USERNAME": {
                      "isOptional": true,
                      "description": "Shared with Gotenberg: references its basic-auth user (edit it there).",
                      "defaultValue": "${{Gotenberg.GOTENBERG_API_BASIC_AUTH_USERNAME}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "7b30b837-7a03-540c-a19b-5bae7e6b585d": {
                      "mountPath": "/opt/documenso"
                    }
                  }
                },
                "b9369593-93e4-5b71-8ef6-0cacaffcdda6": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": true,
                      "description": "Location where the database will be initialized.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": true,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": true,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": true,
                      "description": "Required variable for Data panel.",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": true,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": true,
                      "description": "Required variable for Data panel.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "User to connect to Postgres DB.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": true,
                      "description": "Password to connect to DB.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Allow Postgres to cleanly shut down.",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "e88dd675-9153-5d1e-a453-5dc3c792b85c": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Documenso",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T22:14:38.939Z",
  "generator_version": "0.1.0"
}
