An open API service indexing awesome lists of open source software.

https://github.com/goindow/docker-nginx-logrotate

nginx [docker]容器日志切割、打包、压缩包维护 shell
https://github.com/goindow/docker-nginx-logrotate

docker log nginx rotate

Last synced: 2 months ago
JSON representation

nginx [docker]容器日志切割、打包、压缩包维护 shell

Awesome Lists containing this project

README

          

# docker_nginx_logrotate
nginx[docker] 容器日志切割、打包、压缩包维护 shell

## 特性
支持多项目,程序会自动识别,最多识别两级目录,每个目录为一个项目,尝试切割打包,比如,a/
- 单项目 [a/.log]
- 多项目 [a/b/.log a/c/.log...] for php-nginx frame

## 用法
- 路径和 nginx 容器名依据各自服务器情况替换
```bash
0 0 * * * /data/php-nginx/sh/docker_nginx_logrotate.sh php-nginx_nginx_1 /data/php-nginx/nginx/logs/ &> /dev/null
```

## 相关链接
[独立安装版](https://github.com/goindow/nginx-logrotate)