Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Limesurvey on Docker

NotificationsYou must be signed in to change notification settings

unixelias/limesurvey

Repository files navigation

LimeSurvey

LimeSurvey - the most popularFree Open Source Software survey tool on the web.

https://www.limesurvey.org/en/

This docker image easies limesurvey installation. It includes a MySQL database as well a web server.

Usage

To run limesurvey in 80 port just:

docker pull unixelias/limesurvey:latestdocker run -d --name limesurvey -p 80:80 unixelias/limesurvey:latest
  1. Go to a browser and typehttp://localhost
  2. Click Next until you reach theDatabase configuration screen
  3. Then enter the following in the field:
  • Database typeMySQL
  • Database locationmysqldb
  • Database userroot
  • Database root passwdtoor
  • Database passwordpasswd
  • Database namesurveys #Or whatever you like
  • Table prefixlime_ #Or whatever you like

You are ready to go.

Environment variables

To run limesurvey in a different http location set theHTTP_LOCATION environment variable.

docker run -d --name limesurvey -p 80:80 -e HTTP_LOCATION="surveys" unixelias/limesurvey:latest

Limesurvey will then be available viahttp://localhost/surveys.

Database in volumes

If you want to preserve data in the event of a container deletion, or version upgrade, you can assign the MySQL data into a named volume:

docker volume create --name mysqldocker run -d --name limesurvey -v mysql:/var/lib/mysql -p 80:80 unixelias/limesurvey:latest

If you delete the container simply run again the above command. The installation page will appear again. Don't worry just put the same parameters as before and limesurvey will recognize the database.

Upload folder

If you want to preserve the uploaded files in the event of a container deletion, or version upgrade, you can assign the upload folder into a named volume:

docker volume create --name uploaddocker run -d --name limesurvey -v upload:/app/upload -v mysql:/var/lib/mysql -p 80:80 unixelias/limesurvey:latest

If you delete the container simply run again the above command. The installation page will appear again. Don't worry just put the same parameters as before and limesurvey will recognize the database and the uploaded files including images.

Using Docker Compose

You can use docker compose to automate the above command if you create a file calleddocker-compose.yml and put in there the following:

version: '2'services:  mysqldb:    image: mysql:latest    volumes:      - mysql:/var/lib/mysql    restart: always    hostname: mysqldb    environment:      MYSQL_ROOT_PASSWORD: toor      MYSQL_DATABASE: surveys      MYSQL_USER: user      MYSQL_PASSWORD: password  limesurvey:    depends_on:      - mysqldb    volumes:      - upload:/app/upload    image:      unixelias/limesurvey:latestvolumes:  mysql:  upload:

And run:

docker-compose up -d

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp