squid/docker-compose.yml

47 lines
992 B
YAML
Raw Normal View History

2020-07-30 14:32:27 +00:00
version: "3.7"
services:
2020-07-30 14:37:30 +00:00
squid:
2020-07-30 14:32:27 +00:00
deploy:
placement:
constraints: [node.labels.com.sigyl.git-stack == yes]
replicas: 1
restart_policy:
condition: any
2020-08-05 11:31:43 +00:00
image: ${SQUID_IMAGE}
2020-07-30 14:32:27 +00:00
volumes:
2020-08-04 20:49:17 +00:00
- squid-cache:/apps/squid/var/cache/squid
2020-08-04 19:48:14 +00:00
#- ./squid.intercept.conf:/etc/squid/squid.conf
- ./myCA/CA_crt.pem:/apps/CA_crt.pem
- ./myCA/CA_key.pem:/apps/CA_key.pem
2020-07-30 14:32:27 +00:00
ports:
2020-08-03 11:28:17 +00:00
- 3128:3128
2020-08-06 09:06:26 +00:00
- 3129:3129
2020-07-30 14:32:27 +00:00
networks:
- appnet
- externalnet
2020-08-03 12:49:03 +00:00
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
2020-07-30 14:32:27 +00:00
volumes:
squid-cache:
2020-08-03 12:49:03 +00:00
squid-deb-cache:
2020-07-30 14:32:27 +00:00
networks:
appnet:
driver: overlay
externalnet:
driver: overlay
2020-08-03 12:49:03 +00:00
external: true