doc: log rotation

This commit is contained in:
2026-08-02 15:22:31 -03:00
parent 68f07eff9b
commit 55f37ba386
2 changed files with 17 additions and 3 deletions
+1 -3
View File
@@ -226,7 +226,5 @@ WRITE_TIMEOUT=0s
## Enable onion service support
#ONION_ENABLED=1
## Keep access logs on a volume.
# You'll need to setup rotation yourself and send the USR1 signal to
# Traefik for reloading.
## Access logs
#COMPOSE_FILE="$COMPOSE_FILE:compose.access-log.yml"
+16
View File
@@ -77,3 +77,19 @@ protection your apps.**
Uncomment the line in the config setting `ONION_ENABLED=1`. This will create a new entrypoint on port 9052 which can be used to bypass forced SSL. For more details, see the [onion recipe](https://recipes.coopcloud.tech/onion).
[`abra`]: https://git.autonomic.zone/autonomic-cooperative/abra
## Access logs
To keep access logs on a volume, uncomment the "Access logs" section.
You'll need to setup rotation yourself and send the USR1 signal to
Traefik for reloading. For instance, with `logrotate:
```
# /etc/logrotate.d/traefik.conf
/var/lib/docker/volumes/traefik_SERVICE_NAME_access-logs/_data/access_log.jsonl {
postrotate
pkill -USR1 traefik
endscript
}
```