Merge pull request #1100 from Angristan/docker-logs
Nginx logs to stdout for Docker images
This commit is contained in:
commit
e54cb1bbe7
4 changed files with 14 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue