Deploy LimeSurvey

Online survey platform with PostgreSQL, generated admin and encryption keys

Deploy LimeSurvey

/var/lib/postgresql/data

/var/www/html/upload

Deploy and Host LimeSurvey on Railway

LimeSurvey is an open-source online survey platform and a self-hosted alternative to SurveyMonkey or Typeform. You build surveys with more than 30 question types, branching logic, quotas and multiple languages, then share public links or send invitations to a participant list. Results can be viewed as statistics or exported to CSV, Excel, SPSS or R.

About Hosting LimeSurvey

LimeSurvey is a PHP application that needs a web server, a SQL database and persistent storage for uploaded files. This template runs LimeSurvey 7.10.0+261109 on Apache with PHP 8.4, built from our public GitHub repo, with Railway's PostgreSQL on the private network. The first start creates the database tables and an admin account with a generated password. LimeSurvey's encryption keys also come from generated variables. Every later start runs LimeSurvey's database migrations. Survey data and sessions live in PostgreSQL, and uploads, themes and plugins live on a volume, so a redeploy or restart keeps everything. Railway serves it over HTTPS on a public domain.

Common Use Cases

  • Customer feedback, NPS and satisfaction surveys that stay on your own infrastructure
  • Academic research questionnaires, consent forms and multi-language studies
  • Event registration, staff surveys and internal polls with invitation lists and reminders

Dependencies for LimeSurvey Hosting

  • PostgreSQL (Railway's Postgres service, included)
  • A volume for uploaded files, themes and plugins (included)

Deployment Dependencies

Implementation Details

The template deploys two services:

  • LimeSurvey: the web app on a public HTTPS domain. Its /var/www/html/upload volume holds uploaded files, themes and plugins. The health check is /healthz.
  • Postgres: surveys, responses, users and sessions, on its own volume, reachable only over the private network.

After deploy:

  1. Open the LimeSurvey domain and go to /admin. The first start takes about a minute.
  2. Sign in as admin with the ADMIN_PASSWORD value from the LimeSurvey service's Variables tab, then change the password.
  3. To send invitations and reminders, set up SMTP under Configuration > Global settings > Email settings.

The deploy form has no prompts. Never change ENCRYPT_SECRET_BOX_KEY or ENCRYPT_NONCE after the first start, because encrypted fields can't be read without them. If you add a custom domain, set PUBLIC_URL (for example https://surveys.YOUR-DOMAIN/). The service is tested at 0.5 GB RAM and 1 vCPU with 6 Apache workers. Raise APACHE_MAX_WORKERS together with the memory if you expect many respondents at once.

Updates: when the template repo pins a new LimeSurvey release, Railway shows an "update available" notice in your project. Read the repo's CHANGELOG.md and back up Postgres before you apply it. The database migrations then run on the next start.

Why Deploy LimeSurvey 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 LimeSurvey 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

More templates in this category

View Template
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
51
View Template
Foundry Virtual Tabletop
Self-hosted virtual tabletop for role-playing games (license required)

Lucas
71
View Template
NEW
Double Commander in your browser
The Double Commander file manager in the cloud, from any device

Nermin Sabanovic
0