mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #1362] Docker Container - Logrorate Doesnt Rotate Logs #5187
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#5187
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @jiriteach on GitHub (Sep 27, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1362
Running the latest version of nginx-ui. Enable Logrotate under preferences but logs are not rotating.
/var/log/nginx is mapped as a volume in Docker so I can access them.
Logs are working fine - just not rotating.
Could this be a bug?
@0xJacky commented on GitHub (Oct 2, 2025):
Hi @jiriteach,
Did you set the command for the log rotation?

@jiriteach commented on GitHub (Oct 2, 2025):
I did run this manually on the container and the logs rotated.
Assumed that turning this setting on - setup a cronjob automatically on the container.
Otherwise - how should I set it for that command to run automatically?
@0xJacky commented on GitHub (Oct 3, 2025):
Please refer to this documentation: https://nginxui.com/guide/config-logrotate.html
@jiriteach commented on GitHub (Oct 3, 2025):
Thanks. I did -
This bit - "The crontab task scheduler of Nginx UI will execute the logrotate command at the interval you set in minutes."
Is not running regularly.
I enabled the setting. Doesn't rotate the logs hence it's looking like a big.
I also checked crontab on the container and cannot see any regular schedules setup.