Run LimeSurvey CE - Custom Survey Tool - in Docker
#LimeSurvey #Surveys #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/1000.html
--------------------------------------------------------------------
What is LimeSurvey?
--------------------------------------------------------------------
[LimeSurvey is] a powerful, open-source survey platform. A free alternative to SurveyMonkey, Typeform, Qualtrics, and Google Forms, making it simple to create online surveys and forms with unmatched flexibility. - https://github.com/LimeSurvey/LimeSurvey
--------------------------------------------------------------------
Installing Docker
--------------------------------------------------------------------
01. Log into the Linux host and run the following commands in a terminal window
install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -
add docker software repository
sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"
install docker
sudo apt install docker-ce docker-compose containerd.io -y
enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
add the current user to the docker group
sudo usermod -aG docker $USER
reauthenticate for the new group membership to take effect
su - $USER
--------------------------------------------------------------------
Running LimeSurvey Container
--------------------------------------------------------------------
01. Continue with the following commands in a terminal window
create working directories
mkdir ~/docker/limesurvey -p && mkdir ~/docker/mariadb -p
set owner of docker directory
sudo chown "$USER":"$USER" ~/docker -R
allow the container to write to working directories
sudo chmod a+rwx -R ~/docker/limesurvey
create containers network
docker network create containers
run the mariadb docker container
docker run -d --name mariadb --network containers -e MYSQL_ROOT_PASSWORD=r00tp@$$ -e MYSQL_USER=limesurvey_rw -e MYSQL_PASSWORD='L!m3Surv3Y' -e MYSQL_DATABASE=limesurvey -v ~/docker/mariadb:/var/lib/mysql -p 3306:3306 --restart=unless-stopped mariadb:latest
run the limesurvey container
docker run -d --name limesurvey --network containers -e DB_TYPE=mysql -e DB_HOST=mariadb -e DB_PORT=3306 -e DB_USERNAME=limesurvey_rw -e DB_PASSWORD='L!m3Surv3Y' -e DB_NAME=limesurvey -e DB_TABLE_PREFIX=" " -e ADMIN_USER=admin -e ADMIN_NAME=administrator -e ADMIN_EMAIL=admin@change.me -e ADMIN_PASSWORD=SomethingSecure -v ~/docker/limesurvey:/var/www/html/upload/surveys -p 8080:8080 --restart=unless-stopped martialblog/limesurvey
02. Open a web browser and navigate to http://DNSorIP:8080/index.php/admin/
03. Login using the admin credentials set in the environment variables
04. Welcome to LimeSurvey
Documentation: https://hub.docker.com/r/martialblog/limesurvey, https://github.com/martialblog/docker-limesurvey
Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro