Deploy OpenSign (Official Images)
Open source DocuSign alternative. Sign PDFs and collect e-signatures
Server
Just deployed
Just deployed
OpenSign
Just deployed
Frontend
Just deployed
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 frombase64 -i cert.pfxPASS_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_URLon 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 ownPFX_BASE64, make surePASS_PHRASEmatches 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.
Template Content