mirror of
				https://github.com/b4tman/docker-squid.git
				synced 2025-11-04 02:58:26 +00:00 
			
		
		
		
	logging to stdout
This commit is contained in:
		@@ -110,6 +110,9 @@ RUN set -x && \
 | 
				
			|||||||
	cd / && \
 | 
						cd / && \
 | 
				
			||||||
	rm -rf /tmp/build "$GNUPGHOME"
 | 
						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"]	
 | 
					VOLUME ["/var/cache/squid"]	
 | 
				
			||||||
EXPOSE 3128/tcp
 | 
					EXPOSE 3128/tcp
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								squid-log.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								squid-log.conf
									
									
									
									
									
										Normal 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
 | 
				
			||||||
		Reference in New Issue
	
	Block a user