mautic / docker-mautic

Docker Image for Mautic
https://www.mautic.org
381 stars 280 forks source link

sudo in mautic5 #254

Closed lordimac closed 9 months ago

lordimac commented 9 months ago

Hello, is sudo missing in mautic5 container or am I missing somehting? When clearing cache I can only use root, which sets the cache/prod folder to root permissions.

mollux commented 9 months ago

@lordimac

thanks for raising the issue. sudo isn't missing in the image :) But it's indeed not documented how to execute commands like e.g. php ./bin/console cache:clear

I created a PR to add this to the readme, which you can review here: https://github.com/mautic/docker-mautic/blob/04b91d86a81093873616f2e75b26a88caeea0999/README.md#running-console-commands-with-docker-compose

can you check and confirm this allows you to clear the cache without running into file permission issues?

lordimac commented 9 months ago

Thank you! Yes, it works. I didnt even think about running this command through docker. Also runs without "compose" if you used another stack management tool (like dockge).

mollux commented 9 months ago

thanks! closing this issue and merging the referenced PR