espensgr
espensgr
RRailway
Created by espensgr on 10/4/2023 in #✋|help
writing to volume from php i docker fails
I've setup craftcms/nginx as a step of a buildchain in a dockerfile, have dockerignored the storage folder and made a volume to /app/storage (craftcms runs in /app). The volume is setup with root:root as user and the image is running as www-data user, so php-fpm is also running on the www-data user. When the image start i get /app/storage isn't writable by PHP. Please fix that. I have tried to make a shell script to replace the default entrypoint of the docker file to run chmod, chown and mkdir on the volume, but no luck. Anyone with a solution to this?
14 replies