GithubHelp home page GithubHelp logo

docker-compose volumes about appwrite HOT 4 CLOSED

appwrite avatar appwrite commented on May 2, 2024
docker-compose volumes

from appwrite.

Comments (4)

eldadfux avatar eldadfux commented on May 2, 2024 1

Hey @mostafahussein, so I took your advice and moved all our docker-compose files to use volumes instead of mounts. This seems to really help solve some of the problems we faced related to read and write permissions errors in the DB or storage services.

Thanks!!

from appwrite.

mostafahussein avatar mostafahussein commented on May 2, 2024 1

Glad to hear that!

from appwrite.

eldadfux avatar eldadfux commented on May 2, 2024

These are the volumes we need for development only mode. Up until our latest version, we only mapped the ./storage directory, but that caused some permission issues for some developers (storage also contains DB directories).

The production public docker-compose is here: https://appwrite.io/docker-compose.yml

This is the docker-compose.yml we give non-maintainers to setup.

Named volumes sound like a good idea, but I am not familiar with them. What are their advantages compared to plain volumes?

from appwrite.

mostafahussein avatar mostafahussein commented on May 2, 2024

Named volumes are completely managed by Docker, not by your side. But as you use it for developers I would suggest having the following structure:
1- docker-compose.yml
2- docker-compose.development.yml
2- docker-compose.public.yml
And we you run it you would need to use the following command:

# In case of development usage
docker-compose up -d -f docker-compose.yml -f docker-compose.development.yml

Next, we can have both the path based volumes inside the development file and the needed named volumes inside the public file because the public/development file will override the already existing keys. so for example, if you have an environment called X=hello inside docker-compose.yml you can override it by defining it inside one of these additional files.

from appwrite.

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.