Self-host LimeSurvey with Docker
A mature, self-hosted online survey tool for building and analyzing anonymous surveys.
This page describes the Levelrail template for LimeSurvey (Productivity). It deploys the services below as one Docker Compose app on your own server.
Project site: https://www.limesurvey.org/manual/.Recommended memory: about 512 MiB.
Services, ports and volumes
| Service | Image | Container ports | Volumes |
|---|---|---|---|
limesurvey | adamzammit/limesurvey:latest | 80 | limesurvey_upload_data -> /var/www/html/uploadlimesurvey_config_data -> /var/www/html/application/config |
mariadb | mariadb:11 | none | limesurvey_mariadb_data -> /var/lib/mysql |
redis | redis:7-alpine | none | none |
Environment variables
| Service | Variable | Value |
|---|---|---|
limesurvey | LIMESURVEY_ADMIN_EMAIL | Preset in the template |
limesurvey | LIMESURVEY_ADMIN_NAME | Preset in the template |
limesurvey | LIMESURVEY_ADMIN_PASSWORD | Generated at deploy |
limesurvey | LIMESURVEY_ADMIN_USER | Preset in the template |
limesurvey | LIMESURVEY_DB_HOST | Preset in the template |
limesurvey | LIMESURVEY_DB_NAME | Preset in the template |
limesurvey | LIMESURVEY_DB_PASSWORD | Generated at deploy |
limesurvey | LIMESURVEY_DB_USER | Preset in the template |
limesurvey | LIMESURVEY_PHP_SESSION_SAVE_HANDLER | Preset in the template |
limesurvey | LIMESURVEY_PHP_SESSION_SAVE_PATH | Preset in the template |
mariadb | MYSQL_DATABASE | Preset in the template |
mariadb | MYSQL_PASSWORD | Generated at deploy |
mariadb | MYSQL_ROOT_PASSWORD | Generated at deploy |
mariadb | MYSQL_USER | Preset in the template |
Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.
Deploy LimeSurvey with Levelrail
In the dashboard, open Apps, choose New app, then Browse templates, and select LimeSurvey. Review the Compose body and deploy.
With the CLI:
levelrail-cli templates deploy limesurvey --name my-limesurveySee Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.
More Productivity templates
All templates are listed in the self-host gallery.