Sign inSign up

unillett/limesurvey

Sponsored OSS

By UNIL

•Updated about 6 hours ago

Docker configuration for the LimeSurvey application

Image
0

8.2K

unillett/limesurvey repository overview

⁠Introduction

Docker configuration files and application settings for the LimeSurvey server installation and configuration.

LimeSurvey⁠ is a free online survey tool.

⁠Development with Docker

⁠Docker installation

A working Docker⁠ installation is mandatory.

⁠Environment files

Copy & rename the following environment files.

cp env.example .env
cp db.env.example db.env

You can replace the values if needed, but the default ones should work for local development.

Make sure to copy & rename the docker-compose.override.yml.dev file to docker-compose.override.yml.

cp docker-compose.override.yml.dev docker-compose.override.yml

You can replace the values if needed, but the default ones should work for local development.

⁠Installation & configuration

Build & run all the containers for this project.

docker compose up (add -d if you want to run in the background and silence the logs)

⁠Frontends

To access the application admin please use the following link.

http://localhost:8087/admin⁠

  • admin / password

Warning: you must use localhost to access the server and not 127.0.0.1. Using 127.0.0.1 will not work with the explorer of survey resources.

⁠Deployment with Docker

⁠Environment files

cp env.example .env
cp db.env.example db.env

You should replace the values since the default ones are not ready for production.

Make sure to copy & rename the docker-compose.override.yml.prod file to docker-compose.override.yml.

cp docker-compose.override.yml.prod docker-compose.override.yml

You can replace the values if needed, but the default ones should work for production.

⁠Installation & configuration

Build & run all the containers for this project.

docker compose up -d

⁠Reverse proxy

Use a reverse proxy configuration to map the url to port 8087.

Warning: If you run Docker behind a proxy that redirects to localhost, be sure to specify localhost and not 127.0.0.1. Using 127.0.0.1 will not work with the explorer of survey resources.

⁠Add the organizeSurvey plugin

Install the plugin through Configuration → Plugins → Scan files. Click install in regard to organizeSurvey.

Next, find the plugin in the plugins list and activate it.

⁠Add custom themes

To add a custom theme, go to Admin → Configuration → Themes and click Upload & install. You must choose a zip file containing the new theme.

Themes available in the themes folder are not automatically installed in LimeSurvey.

⁠Application updates

If you plan to upgrade to a new major version, you should check the plugins and themes compatibility and update them if needed. Themes should be zipped and re-installed manually, while plugins are baked into the image but are deactivated upon upgrade. You should check the plugins list and re-activate them if needed.

When a new Limesurvey version⁠ is available, you should update the value in the VERSION⁠ file to reference the new tag. When the change is pushed to the repository, the workflow will automatically build the new image and push it to Docker Hub⁠.

If you need to trigger a rebuild or mark a custom image version, you can add a revision suffix (such as -rev1) to the value in the VERSION file. This suffix will be ignored when fetching the LimeSurvey source code, but it allows you to distinguish builds in your workflow and Docker image tags.

⁠Docker images

GitHub Actions workflows generate Docker image tags based on these events:

  • Push to development: dev-latest, stage-latest
  • Push to main: latest
  • Push a git tag: vX.Y.Z (immutable, from VERSION)

Tag summary

Content type

Image

Digest

sha256:4fdb08c3d…

Size

260.6 MB

Last updated

15 days ago

docker pull unillett/limesurvey

This week's pulls

Pulls:

45

Last week