mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-07 21:15:39 -05:00
[GH-ISSUE #2696] Logrotate on Docker installations #18123
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mzambrini on GitHub (Aug 20, 2022).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/2696
Subject of the issue
Logrotate does not work on Docker installations
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: SIGNUPS_ALLOWED, INVITATIONS_ALLOWED, ADMIN_TOKEN, SMTP_HOST, SMTP_SECURITY, SMTP_PORT, SMTP_FROM, SMTP_USERNAME, SMTP_PASSWORD
Steps to reproduce
I wanted to configure vaultwarden to handle log rotation in my installation with Docker.
Following the instructions of the wiki (https://github.com/dani-garcia/vaultwarden/wiki/Logrotate-example) I added the following line to my docker-compose.yml file in the "volumes" section:
Expected behaviour
I expected the log file to be correctly rotated
Actual behaviour
The log file is never rotated.
Inspecting the Docker image and the sources on GitHub, I verified that the "logrotate" tool was not installed when creating the image