added logs rotation

This commit is contained in:
2025-07-30 12:20:05 +02:00
parent 7c66e29dd3
commit 04fda43862
3 changed files with 23 additions and 3 deletions

View File

@@ -14,11 +14,12 @@ services:
- 8888:80
- 2222:22
volumes:
- ./www:/data/www
- ./data:/data
- ./ssh:/ssh # add authorized_keys file here
- ./extra_nginx.conf:/etc/nginx/custom.d/extra.conf # optional
- ./htpasswd:/app/htpasswd # optional, for webdav auth
environment:
LOG_DAYS: 14 # default 7
WEBDAV_PORT: 8080 # default: 8080
PHP: php84 # none (default), php82, php83, php84
POSTSIZE: 256M # default: 256M
@@ -31,4 +32,4 @@ services:
FPM_MAX_SPARE_SERVERS: 3 # default: 3
```
The `/data/www` directory and its contents will be chowned to `$PUID:$PGID` and chmodded to `0755` for directories and `0644` for files at container start.
The `/data/www` and `/data/logs` directories and their contents will be chowned to `$PUID:$PGID` and chmodded to `0755` for directories and `0644` for files at container start.