You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why do we have to mount app, public, src and vendor while we have added them to the docker image itself?
Also, I would recommend to use named volumes instead of the current way.
Let me know about your thoughts so I can work on it if anything needs to be done.
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).
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.
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.
Activity
eldadfux commentedon Oct 4, 2019
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
productionpublic docker-compose is here: https://appwrite.io/docker-compose.ymlThis 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?
mostafahussein commentedon Oct 4, 2019
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:
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=helloinsidedocker-compose.ymlyou can override it by defining it inside one of these additional files.eldadfux commentedon Nov 23, 2019
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!!
mostafahussein commentedon Nov 23, 2019
Glad to hear that!
Merge pull request appwrite#124 from utopia-php/fix/lock-transfer-token
Merge pull request appwrite#124 from utopia-php/feat-clickhouse-ping
feat(abuse)!: move packages/abuse onto database 8's schema models
Merge pull request appwrite#124 from utopia-php/log-projects