---
title: "Deploy OpenSign (Official Images)"
description: "Open source DocuSign alternative. Sign PDFs and collect e-signatures"
category: "Automation"
url: https://railway.com/deploy/opensign-official-images
---

# Deploy OpenSign (Official Images)

Open source DocuSign alternative. Sign PDFs and collect e-signatures

**[Deploy OpenSign (Official Images) on Railway](https://railway.com/template/opensign-official-images)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/opensign-official-images/manifest.json

- **Creator:** Auromations
- **Category:** Automation
- **Total deploys:** 1

## Template content

### Server https://www.opensignlabs.com/images/favicon-512.png

- **Image:** opensign/opensignserver@sha256:c4c5d3a0935dd9dd2753e17e944217dbb4f40e48698281daf1cbace28b4381d5
- **Start command:** `/bin/sh -c "printenv OPENSIGN_BOOT > /tmp/boot.sh && exec /bin/sh /tmp/boot.sh"`
- **Health check:** /app/health

### MongoDB https://devicons.railway.app/i/mongodb.svg

- **Image:** ghcr.io/railwayapp-templates/mongo-ha/mongo:8.0
- **Start command:** `docker-entrypoint.sh mongod --ipv6 --bind_ip ::,0.0.0.0 --setParameter diagnosticDataCollectionEnabled=false`

### OpenSign https://www.opensignlabs.com/images/favicon-512.png

- **Image:** caddy:2.11.9-alpine
- **Start command:** `/bin/sh -c "printenv CADDYFILE > /etc/caddy/Caddyfile && exec caddy run --config /etc/caddy/Caddyfile --adapter caddyfile"`
- **Health check:** /caddyhealth
- **Public domain:** Yes

### Frontend https://www.opensignlabs.com/images/favicon-512.png

- **Image:** opensign/opensign@sha256:ff2e639820d7fe12f4099103399f4c3220d6873dedba14aed9a899fcd38781f5
- **Start command:** `/bin/sh -c "cd /usr/src/app && exec ./entrypoint.sh node server.cjs"`
- **Health check:** /

## Documentation

# Deploy and Host OpenSign on Railway

OpenSign is an open source e-signature platform and DocuSign alternative. Upload a PDF, DOCX or image, place signature, date and text fields, sign it yourself or send it to others, and get back a digitally signed PDF with an audit trail and a completion certificate.

## About Hosting OpenSign

This template runs OpenSign v3.3.0 from the project's own Docker images, pinned by digest, as four services:

- **OpenSign**: a small Caddy proxy and the only public service. It serves the web app on `/` and the API on `/api`, all on one domain, the same layout as upstream's Docker Compose file.
- **Frontend**: the OpenSign web app.
- **Server**: the OpenSign API (Parse Server). It includes LibreOffice for DOCX to PDF conversion. Uploaded and signed documents live on this service's volume.
- **MongoDB**: the database, with its own volume.

Nothing needs to be filled in to deploy. Secrets are generated for you, and a signing certificate is created on first boot.

## Common Use Cases

- Sign contracts, NDAs and offer letters yourself in the browser
- Send documents to one or more signers, in order or in parallel, and track who has signed
- Reusable templates for documents you send often
- Keep signed documents and audit trails on infrastructure you control

## Dependencies for OpenSign Hosting

- MongoDB (included)
- A persistent volume for documents (included)
- Optional: your own email provider (Mailgun, or SMTP from a provider such as Resend, Postmark or Amazon SES) to email signers

### Deployment Dependencies

- OpenSign: https://github.com/OpenSignLabs/OpenSign
- Docs: https://docs.opensignlabs.com
- Images: https://hub.docker.com/r/opensign/opensignserver and https://hub.docker.com/r/opensign/opensign

### Implementation Details

**First login.** Open the OpenSign service's public URL. A fresh deployment opens the setup page. The first account created there becomes the admin, so do this right after deploying. The "Subscribe to OpenSign newsletter" box sends your email to the OpenSign project; leave it unticked if you do not want that. Once an admin exists, the setup page is closed for good.

**Admin setup fix.** OpenSign v3.3.0 has a bug: the setup page fails with "An account already exists for this email" on every fresh install. This template patches it at boot. The patch adopts the account the setup page has just created, does not hand out a session for it, and still refuses a second admin.

**Signing certificate.** Signed PDFs carry a PKCS#7 digital signature. If you do not supply one, the Server creates a self-signed certificate on first boot and keeps it on its volume, so every document this deployment signs uses the same certificate. PDF readers will show the signature as valid but from an unverified signer. To use a certificate from a trusted CA, set these on the Server service and redeploy:

- `PFX_BASE64`: the base64 of your .pfx or .p12 file, for example from `base64 -i cert.pfx`
- `PASS_PHRASE`: its pass phrase

**Email (optional).** The template ships with no mail sender. Without one you can still sign documents yourself. When you request signatures, copy each signer's link from the share dialog and send it to them yourself. Password reset emails need mail too. To have OpenSign email signers, add your own provider on the Server service and redeploy:

- Mailgun: `MAILGUN_API_KEY`, `MAILGUN_DOMAIN`, `MAILGUN_SENDER`
- SMTP: `SMTP_ENABLE=true`, `SMTP_HOST`, `SMTP_PORT` (465 for TLS, 587 for STARTTLS), `SMTP_USERNAME`, `SMTP_PASS`, `SMTP_USER_EMAIL` (the sender address)

Railway allows outbound SMTP on the Pro plan only. On other plans, use Mailgun, which sends over HTTPS. Use a sending domain you have verified with your provider.

**Custom domain.** Add the domain to the OpenSign service. Then on the Server service, set `SERVER_URL` to `https://YOUR_DOMAIN/api/app` and redeploy. The web app follows the domain automatically.

**Storage.** Documents are stored on the Server volume (`USE_LOCAL=true`). To use S3 compatible storage instead, set `USE_LOCAL=false` and fill `DO_SPACE`, `DO_ENDPOINT`, `DO_BASEURL`, `DO_ACCESS_KEY_ID`, `DO_SECRET_ACCESS_KEY` and `DO_REGION` on the Server service.

**Audit trail IPs.** The proxy forwards each signer's real IP address to the Server, and that address is what the audit trail records.

**Troubleshooting**

- *The page loads but nothing works for a minute after deploying.* The Server image is large and pulls slowly the first time. Wait until all four services show as active.
- *"Admin already exists" on the setup page.* Someone has already created the admin. Log in with that account, or use the forgot password link if email is configured.
- *File links point at the old domain after adding a custom domain.* `SERVER_URL` on the Server service still has the old value. Update it and redeploy.
- *Signing fails after you change `PASS_PHRASE`.* With the generated certificate, the Server makes a new one at boot when the stored one no longer opens. Redeploy the Server. With your own `PFX_BASE64`, make sure `PASS_PHRASE` matches it.

**Upgrading.** Change the image digests on Frontend and Server to a newer OpenSign build. Use matching builds for both services. The boot patch only applies if it finds the exact v3.3.0 line, so it does nothing on versions where upstream has fixed the bug.

## Why Deploy OpenSign on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying OpenSign on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — Automate WhatsApp workflows with Evolution API, n8n, and Postgres.
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/opensign-official-images
