Giter Site home page Giter Site logo

Comments (1)

theBuzzyCoder avatar theBuzzyCoder commented on May 26, 2024

@bandtank Moving this conversation here

The entire espocrm/data directory is mounted to a docker volume.

version: '3.3'
services:
  webserver:
    volumes:
      - database-configurations:/crm/espocrm/data
    command: "nginx -g 'daemon off;'"
volumes:
  database-configurations:

This issue is not just for uploads. Too or more containers cannot have different config.php and connect to same database because their key to decrypt passwords will change and the initial container will not be able to connect to database. This was the first issue I had to resolve while dockerising espocrm.

Different issues will occur and logs will be generated. Needed to aggregate logs into one place. So, mounted data/logs.

We cannot clear_cache in each container every time we make changes to Resources/metadata. Hence clearing cache in one container should clear file cache in all containers. Two or more containers cannot have different versions of cache files. Will cause problems for users when using espocrm. Hence data/cache was mounted.

Finally, data/upload is needed of course and data/backup. Hence we mount the entire data directory to persistent volume. You can make S3 as a place to store there folders also, but I am not sure how it's done. I am sure ECS will have something in their configurations to do that.

So, it's persistent across containers. Just like the database. Does that clear your concern? Let me know if you need something else and let's take this conversation

from dockerised-espocrm.

Related Issues (1)

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.