1
0
mirror of https://github.com/b4tman/docker-squid.git synced 2024-12-22 09:03:13 +00:00

logging to stdout

This commit is contained in:
Dmitry Belyaev 2017-05-11 09:59:38 +03:00
parent 880ff47f40
commit 711ae72e14
2 changed files with 7 additions and 0 deletions

View File

@ -110,6 +110,9 @@ RUN set -x && \
cd / && \
rm -rf /tmp/build "$GNUPGHOME"
COPY squid-log.conf /etc/squid/squid-log.conf
RUN echo 'include /etc/squid/squid-log.conf' >> "$SQUID_CONFIG_FILE"
VOLUME ["/var/cache/squid"]
EXPOSE 3128/tcp

4
squid-log.conf Normal file
View File

@ -0,0 +1,4 @@
logfile_rotate 0
cache_store_log none
access_log stdio:/proc/self/fd/1
cache_log stdio:/proc/self/fd/2