From 711ae72e14fc8505220e4924014c6e1a0e9b6206 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 11 May 2017 09:59:38 +0300 Subject: [PATCH] logging to stdout --- Dockerfile | 3 +++ squid-log.conf | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 squid-log.conf diff --git a/Dockerfile b/Dockerfile index 9b3391d..441389a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/squid-log.conf b/squid-log.conf new file mode 100644 index 0000000..a71be89 --- /dev/null +++ b/squid-log.conf @@ -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