Trying to get VW to write out logs to /data/

Hi vaultwarden community,

I’m having a problem getting a log file written out to the file system by the docker container. In my docker compose I have a LOG_FILE:data/vaultwarden.log entry declared under environment, but no file is ever made at that path. I saw that in the past, users noted that having a slash before data breaks this, but removing the slash has not made a difference.

Vaultwarden does have read/write permissions on it’s /data mount, which is on the local file system of the docker host and not in a docker virtual disk.

Any ideas?

Thanks!

With the map syntax you would need a space after the colon. Cf.