Simple container rotating specified logs
1.2K
version: '3.5'
services:
logrotate:
container_name: logrotate
image: phoenixashes/logrotate
environment:
LOG_PATHS: "/var/logs/nginx/*.log,/var/logs/openvpn/*.log" # logs to rotate
LOG_SIZE: "10M" # size at which logs are rotated
LOG_ROTATIONS: "2" # rotations to keep
volumes:
- nginx_logs:/var/logs/nginx
- openvpn_logs:/var/logs/openvpn
restart: unless-stopped
volumes:
nginx_logs:
external: true
openvpn_logs:
external: true
Content type
Image
Digest
sha256:254c12ef9…
Size
9 MB
Last updated
almost 4 years ago
docker pull phoenixashes/logrotate