Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Getting started with Docker LimeSurvey Image on Windows host

  • visionit
  • visionit's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months ago #172266 by visionit
Docker Image Feedback was created by visionit
Hello,


we have been working on a production ready Docker Image for LimeSurvey and are looking for Feedback (issues, wanted features, tips for configuration, etc):

hub.docker.com/r/martialblog/limesurvey/

Using docker-compose the files in the repository will quickly startup a LimeSurvey instance.

Thanks and cheers,
Markus
The following user(s) said Thank You: JonasHeidelberg
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
5 years 7 months ago #172304 by LouisGac
Replied by LouisGac on topic Docker Image Feedback
thank you for sharing.
The topic has been locked.
More
5 years 7 months ago #172346 by jelo
Replied by jelo on topic Docker Image Feedback

visionit wrote: are looking for Feedback (issues, wanted features, tips for configuration, etc):

Are you using a productive LimeSurvey setup with this docker image? With FPM?
I wonder why php-fpm cannot be used inside the docker image. Or is that design decision of yours?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • visionit
  • visionit's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months ago #172424 by visionit
Replied by visionit on topic Docker Image Feedback
Hey, I'm using the apache version in a productive setup.

What do you mean by "php-fpm cannot be used inside the docker image"?

$ docker run -ti --entrypoint php-fpm martialblog/limesurvey:fpm
[15-Aug-2018 07:10:01] NOTICE: fpm is running, pid 1
[15-Aug-2018 07:10:01] NOTICE: ready to handle connections
The topic has been locked.
More
5 years 7 months ago #172425 by jelo
Replied by jelo on topic Docker Image Feedback
Thanks for your answer.

I was confused by this sentence.

To use the fpm image, you need an additional web server that can proxy http-request to the fpm-port of the container

But reading it now again I see additional web server and not additional container. So I got that wrong. Sorry for wasting your time.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • visionit
  • visionit's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months ago #172428 by visionit
Replied by visionit on topic Docker Image Feedback
No worries.

Dockerising PHP application with nginx and php-fpm is common practice. This is usually a more flexible/scalable setup.
The topic has been locked.
More
5 years 6 months ago #173687 by 412837
Replied by 412837 on topic Docker Image Feedback
looks very good to me.

I did a search before starting another...

it is only missing data volumes. do you know if lime stores data in the www filesystem? or is it all db only?

will it be official/maintained?

how would the update process be? if we just replace the docker image with a new version and data volumes from the previous one, will limesurvey upgrade the data?

perhaps would be good to coordinate with the team.
The topic has been locked.
More
5 years 6 months ago #173689 by jelo
Replied by jelo on topic Docker Image Feedback

412837 wrote: it is only missing data volumes. do you know if lime stores data in the www filesystem? or is it all db only?

What is the www-filesystem? Never heard that term, perhaps you mean the webrootpath as a storage destination?

LimeSurvey stores data in files (e.g. config files, themes, uploads).

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
5 years 6 months ago #173718 by bruce78
Replied by bruce78 on topic Docker Image Feedback
Very cool, I hope to test this out in the coming days!
The topic has been locked.
  • visionit
  • visionit's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago #173800 by visionit
Replied by visionit on topic Docker Image Feedback
Hi,

so all uploaded (persitent) user data is stored to the upload/ directory. Any other data (in www/) is application specific, thus getting changed when changing the version of the image. So what you want to do, is to use a Volume for /var/www/html/upload/

If you change the Image version you'll get the new LS version and the uploaded data stays the same.

I'd be very happy to get feedback for improvement from the LS Team.

Cheers
The topic has been locked.
More
5 years 2 months ago #179574 by JonasHeidelberg
Replied by JonasHeidelberg on topic Docker Image Feedback
Thanks for this work! Did you also have a look at registry.hub.docker.com/u/crramirez/limesurvey/ which is mentioned here? www.limesurvey.org/es/foro/news/98178-li...-docker-ready-to-run
Sounds like crramirez tried to solve a similar task back then? His last update seems to be 3 months ago, yours 4 hours as of now ;-)...
The topic has been locked.
More
5 years 2 months ago #179575 by JonasHeidelberg
Hi Markus, I installed Docker Desktop Community on Windows 10 and configured it to using Linux containers. I was able to "docker pull martialblog/limesurvey", but now I am not sure how to continue. I tried running docker-compose, but learned that it seems to need a docker-compose.yml locally in the Windows file system, whereas the "docker pull" put everything into the virtual hard disk used by the Linux VM...

Is there some quick start guide for newbies like me? Thanks so much for any help!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose