I had Vaultwarden up and running well while it had root privileges. Once I added a user in Docker Compose, I start getting error
Error loading config:
Unable to write to log file. /var/log/vaultwarden/access.log
My Docker Compose file is below:
services:
vaultwarden:
image: vaultwarden/server:1.32.0
container_name: vaultwarden
restart: always
env_file: .env
volumes:
- /srv/storage/docker-volumes/vaultwarden/vw-data:/data
- vw-logs:/var/log/vaultwarden
user: 2010:2010
networks:
caddy-network:
ipv4_address: 172.50.0.50
volumes:
vw-logs:
networks:
caddy-network:
external: true
I’ve changed the owner of directory /srv/storage/docker-volumes/vaultwarden/vw-data
to the new user, but what do I have to do with the vw-logs volume?