mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 08:32:50 -05:00
Rotate nginx logs (#601)
* Rotate nginx logs * Create logrotate.sh * Update Dockerfile * Update entrypoint.sh * Update Dockerfile * Update logrotate.sh * No reason to disable logrotate * Update logrotate.sh * Update entrypoint.sh * typo * Avoid useless output * Use gosu
This commit is contained in:
@ -13,12 +13,14 @@ COPY proxy.conf /etc/nginx
|
||||
COPY mime.types /etc/nginx
|
||||
COPY security-headers.conf /etc/nginx
|
||||
COPY security-headers-ssl.conf /etc/nginx
|
||||
COPY logrotate.sh /
|
||||
COPY entrypoint.sh /
|
||||
|
||||
EXPOSE 8080
|
||||
EXPOSE 8443
|
||||
|
||||
RUN chmod +x /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh \
|
||||
&& chmod +x /logrotate.sh
|
||||
|
||||
HEALTHCHECK CMD curl --insecure -Lfs https://localhost:8443/alive || curl -Lfs http://localhost:8080/alive || exit 1
|
||||
|
||||
|
Reference in New Issue
Block a user