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
{{ message }}
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.
As a developer, I want the Docker (Compose) configuration to work with different users so that I don't run into permission problems.
One developer recently had issues running our example because storage/cache was not writable by the app, see community chat.
Running chmod -R 777 storage fixed the issue. Git doesn't allow to create files with 666 or 777, only 644 or 755 - and it's good like that. Instead we should find a way to run Docker with the same user that the files belong to so that the cache directory is writable without changing permissions to 777.
A pull request for our Docker config would be really amazing if some entrypoint magic can fix it.
The text was updated successfully, but these errors were encountered:
Guess there are many ways to solve this. Ideally, the container is running as www-run and not as root on production. You can specify a user and group id using Docker (Compose) for this. When building a production image, just make sure all application directories belong to www-run to avoid permission problems.
Development environments are special in that developers typically don't work as www-run, so there could be permission issues when mounting the project directory from the host and running the container as a different user.
The included Docker config is primarily for development. Providing a production environment that works for everyone is beyond the scope of this project.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
help wantedGood for new / external contributorstodoReady for implementation
As a developer, I want the Docker (Compose) configuration to work with different users so that I don't run into permission problems.
One developer recently had issues running our example because
storage/cache
was not writable by the app, see community chat.Running
chmod -R 777 storage
fixed the issue. Git doesn't allow to create files with 666 or 777, only 644 or 755 - and it's good like that. Instead we should find a way to run Docker with the same user that the files belong to so that the cache directory is writable without changing permissions to 777.A pull request for our Docker config would be really amazing if some entrypoint magic can fix it.
The text was updated successfully, but these errors were encountered: