50 lines
1.1 KiB
YAML
50 lines
1.1 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:
|
|
- 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:/apps/CA_crt.pem
|
|
- ./myCA/CA_key.pem:/apps/CA_key.pem
|
|
ports:
|
|
- 3128:3128
|
|
- 3129:3129
|
|
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
|