Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx log rotation #1357

Closed
fedemotta opened this issue Jan 18, 2018 · 1 comment
Closed

Nginx log rotation #1357

fedemotta opened this issue Jan 18, 2018 · 1 comment

Comments

@fedemotta
Copy link

Hi Guys,
Could you help me to make it work the log rotation for nginx?

I tried in different ways but none works.

What is the recommended way to use log rotation with nginx inside a docker container with laradock?

Thanks in advance

@vlauciani
Copy link
Contributor

Hi all

is there any news about this issue?

I'm using nginx/sites/laravel.conf that stores logs in:

error_log /var/log/nginx/laravel_error.log;
access_log /var/log/nginx/laravel_access.log;

but they are not "rotated" and the single files are growing.

bestlong pushed a commit that referenced this issue May 18, 2019
* Update Dockerfile

Install 'logrotate' for nginx log. Issue #1357

* Create nginx

Create 'logrotate' file for nginx log. Issue #1357

* Update Dockerfile

Copy 'logrotate' config file. Issue #1357

* Update nginx

Add 'nodateext' logrotate option to archive with sequence number

* Update startup.sh

Add line to start 'crond' demon

* Update nginx

Update permissions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants