Hi, I used docker-compose to mount the volumes to the docker container. Everything works fine until I tried to mount the log volume into the container and set a log command into the Caddyfile that came out a error
open /var/log/caddy/access.log: permission denied
I tried to find the online solutions (like chmod the file to 777 permission, change the log directory) but nothing helped. Is there anyone has a idea for this issue?
Hi, I used docker-compose to mount the volumes to the docker container. Everything works fine until I tried to mount the log volume into the container and set a log command into the Caddyfile that came out a error
I tried to find the online solutions (like chmod the file to 777 permission, change the log directory) but nothing helped. Is there anyone has a idea for this issue?
My caddyfile
My docker compose file
My OS Version
Thanks for any idea.