mirror of
				https://github.com/b4tman/docker-squid.git
				synced 2025-11-03 18:48:27 +00:00 
			
		
		
		
	sslbump: shell script instead of long cmd add 'ssl-bump' image test add access_for_localnet for image test allow_all instead of localnet for test change test conf fix test compose
		
			
				
	
	
		
			21 lines
		
	
	
		
			560 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			560 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
version: '2.3'
 | 
						|
services:
 | 
						|
  proxy:
 | 
						|
    image: "${TEST_TAG}"
 | 
						|
    volumes:
 | 
						|
      - './test_localnet.conf:/etc/squid/conf.d/test_localnet.conf:ro'
 | 
						|
    healthcheck:
 | 
						|
      test: ["CMD", "sh", "-exc", "squidclient -T 3 mgr:info 2> /dev/null | grep -qF '200 OK'"]
 | 
						|
      interval: 5s
 | 
						|
      timeout: 3s
 | 
						|
      retries: 5
 | 
						|
      start_period: 1s
 | 
						|
  sut:
 | 
						|
    image: "${TEST_TAG}"
 | 
						|
    links: 
 | 
						|
      - proxy
 | 
						|
    depends_on:
 | 
						|
      - proxy
 | 
						|
    command: sh -exc "sleep 10 && squidclient -h proxy -T 3 'https://postman-echo.com/get?squidtest=ok' 2> /dev/null | grep -qF '200 OK'"
 | 
						|
 |