I run logrotate in a nginx docker container.
FROM nginx:1.16.1 RUN apt-get update && apt-get -y install logrotate ADD logrotate /etc/logrotate.d/ngin