Are you sure that’s the cause? As far as I know, the node doesn’t save the log file inside the container to /var/log, unless you specified that location in the config.yaml
file. Nothing in the snippet you posted indicates that the local log file is mapped to the host.
I don’t use docker compose, but what I did was create a new mount in my docker run command and modified config.yaml to point at that location. In my case:
docker run...
...
--mount type=bind,source="/path/to/log/directory",destination=/app/logs \
...
Then in config.yaml
...
log.output: "/app/logs/storj1/storagenode1.log"
...
You are the second person I’ve seen with this issue: