squid/docker-compose.yml

44 lines
870 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-03 11:28:17 +00:00
image: sameersbn/squid:3.5.27-2
2020-07-30 14:32:27 +00:00
volumes:
2020-08-03 11:28:17 +00:00
- squid-cache:/var/spool/squid
2020-08-03 16:11:16 +00:00
- ./squid.conf:/etc/squid/squid.conf
2020-07-30 14:32:27 +00:00
ports:
2020-08-03 11:28:17 +00:00
- 3128:3128
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