Merge pull request #1100 from Angristan/docker-logs

Nginx logs to stdout for Docker images
This commit is contained in:
VirtualTam 2018-03-19 22:22:12 +01:00 committed by GitHub
commit e54cb1bbe7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 4 deletions

View file

@ -37,7 +37,9 @@ RUN curl -L https://github.com/shaarli/Shaarli/archive/latest.tar.gz | tar xzf -
&& cd shaarli \ && cd shaarli \
&& composer --prefer-dist --no-dev install \ && composer --prefer-dist --no-dev install \
&& rm -rf ~/.composer \ && rm -rf ~/.composer \
&& chown -R nginx:nginx . && chown -R nginx:nginx . \
&& ln -sf /dev/stdout /var/log/nginx/shaarli.access.log \
&& ln -sf /dev/stderr /var/log/nginx/shaarli.error.log
VOLUME /var/www/shaarli/data VOLUME /var/www/shaarli/data

View file

@ -37,7 +37,9 @@ RUN curl -L https://github.com/shaarli/Shaarli/archive/master.tar.gz | tar xzf -
&& cd shaarli \ && cd shaarli \
&& composer --prefer-dist --no-dev install \ && composer --prefer-dist --no-dev install \
&& rm -rf ~/.composer \ && rm -rf ~/.composer \
&& chown -R nginx:nginx . && chown -R nginx:nginx . \
&& ln -sf /dev/stdout /var/log/nginx/shaarli.access.log \
&& ln -sf /dev/stderr /var/log/nginx/shaarli.error.log
VOLUME /var/www/shaarli/data VOLUME /var/www/shaarli/data

View file

@ -42,7 +42,10 @@ RUN rm -rf /etc/php7/php-fpm.d/www.conf \
WORKDIR /var/www WORKDIR /var/www
COPY --from=composer /app/shaarli shaarli COPY --from=composer /app/shaarli shaarli
RUN chown -R nginx:nginx . RUN chown -R nginx:nginx . \
&& ln -sf /dev/stdout /var/log/nginx/shaarli.access.log \
&& ln -sf /dev/stderr /var/log/nginx/shaarli.error.log
VOLUME /var/www/shaarli/data VOLUME /var/www/shaarli/data
EXPOSE 80 EXPOSE 80

View file

@ -42,7 +42,10 @@ RUN rm -rf /etc/php7/php-fpm.d/www.conf \
WORKDIR /var/www WORKDIR /var/www
COPY --from=composer /app/shaarli shaarli COPY --from=composer /app/shaarli shaarli
RUN chown -R nginx:nginx . RUN chown -R nginx:nginx . \
&& ln -sf /dev/stdout /var/log/nginx/shaarli.access.log \
&& ln -sf /dev/stderr /var/log/nginx/shaarli.error.log
VOLUME /var/www/shaarli/data VOLUME /var/www/shaarli/data
EXPOSE 80 EXPOSE 80