Coder Social home page Coder Social logo

Comments (6)

adamzammit avatar adamzammit commented on August 30, 2024

can you please share your full docker-compose file.

When you say "everything erases" do you mean the files or the LimeSurvey content such as surveys? LimeSurvey stores most data in the database so please ensure that the database container volume will persist.

from limesurvey-docker.

mnfctrdinitaly avatar mnfctrdinitaly commented on August 30, 2024

Thanks for the response!

please ensure that the database container volume will persist

That might be my issue... what is the volume that contains the db? Here's the complete compose

version: '2'
services:
  limesurvey:
    image: adamzammit/limesurvey
    container_name: ccea-lime
    networks:
      - cceadockernet
    restart: always
    expose:
      - 80
    environment:
      LIMESURVEY_DB_HOST: ccea-lime-db
      LIMESURVEY_DB_PASSWORD: secret
      LIMESURVEY_ADMIN_USER: secret
      LIMESURVEY_ADMIN_PASSWORD: secret
      LIMESURVEY_ADMIN_NAME: secret
      LIMESURVEY_ADMIN_EMAIL: secret
      LIMESURVEY_FROM_EMAIL: secret
      LIMESURVEY_SMTP_HOST: secret
      LIMESURVEY_SMTP_USER: secret
      LIMESURVEY_SMTP_PASSWORD: secret
      LIMESURVEY_SMTP_SSL: ssl
      LIMESURVEY_DEBUG: 1
    volumes:
      - /docker/ccea/lime/uploads:/var/www/html/upload
      - /docker/ccea/lime/plugins:/var/www/html/plugins
      - /docker/ccea/lime/config:/var/www/html/application/config
      - /docker/ccea/lime/session:/var/lime/sessions
  mysql:
    image: mariadb:10.5
    container_name: ccea-lime-db
    networks:
      - cceadockernet
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: secret
networks:
  cceadockernet:
    external: true

I'm guessing that I need another volume bind in the mysql service?

Additionally, I renamed the container so that I can differentiate it from another instance running on the same host. Is that possibly an issue?

from limesurvey-docker.

adamzammit avatar adamzammit commented on August 30, 2024

try adding this to the mysql service

volumes:
   - /docker/ccea/lime/mysql:/var/lib/mysql

from limesurvey-docker.

mnfctrdinitaly avatar mnfctrdinitaly commented on August 30, 2024

You are magical!

Thank you for the help! Adding that line to the docker-compose.yml did the trick! You may want to add that to the README.md for future noobs like me.

from limesurvey-docker.

mnfctrdinitaly avatar mnfctrdinitaly commented on August 30, 2024

First off, thanks again for your help! I really appreciate it and hope I am not taking advantage of your kindness.

Since making this change, I get this error upon survey submit... any thoughts?

LimeSurveyError.pdf

from limesurvey-docker.

mnfctrdinitaly avatar mnfctrdinitaly commented on August 30, 2024

So a simple restart of the container and a refresh of the browser has solved this, but I'm not sure what caused it to begin with. Thanks for the help!

from limesurvey-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.