Sign inSign up

phoenixashes/logrotate

By phoenixashes

•Updated almost 4 years ago

Simple container rotating specified logs

Image
0

1.2K

phoenixashes/logrotate repository overview

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

Tag summary

Content type

Image

Digest

sha256:254c12ef9…

Size

9 MB

Last updated

almost 4 years ago

docker pull phoenixashes/logrotate