squid/docker-compose.yml

60 lines
1.7 KiB
YAML

version: "3.7"
services:
squid:
deploy:
placement:
constraints: [node.labels.com.sigyl.git-stack == yes]
replicas: 1
restart_policy:
condition: any
image: wrouesnel/docker-squid4
environment:
- MITM_PROXY=yes
- HTTP_PORT=3128
- MITM_CERT=/local-mitm.crt
- MITM_KEY=/local-mitm.pem
- VISIBLE_HOSTNAME=git.local-domain
- EXTRA_CONFIG1=tls_outgoing_options capath=/etc/ssl/certs \
options=NO_SSLv3,NO_TLSv1 \
cipher=ECDHE+ECDSA \
min-version=1.2
#ALL:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS \
- EXTRA_CONFIG2=sslproxy_cipher EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH+aRSA+RC4:EECDH:EDH+aRSA:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS
# - CONFIG_DISABLE=yes
volumes:
#- ./squid-4/squid.intercept.conf:/etc/squid4/squid.conf
# - squid-cache:/apps/squid/var/cache/squid
#- ./squid.intercept.conf:/etc/squid/squid.conf
- ./myCA/CA_crt.pem:/local-mitm.crt:ro
- ./myCA/CA_key.pem:/local-mitm.pem:ro
ports:
- 3128:3128
networks:
- appnet
- externalnet
squid-deb:
deploy:
placement:
constraints: [node.labels.com.sigyl.git-stack == yes]
replicas: 1
restart_policy:
condition: any
image: mikepurvis/squid-deb-proxy:latest
volumes:
- squid-deb-cache:/cachedir
ports:
- 8000:8000
networks:
- appnet
- externalnet
volumes:
squid-cache:
squid-deb-cache:
networks:
appnet:
driver: overlay
externalnet:
driver: overlay
external: true