Created
January 4, 2019 05:41
-
-
Save mumblepins/1312d214cbba707c657fdae4b65a0774 to your computer and use it in GitHub Desktop.
docker compose for squid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
networks: | |
squid-macvlan: | |
driver: macvlan | |
name: squid-macvlan | |
driver_opts: | |
parent: ${MACVLAN_PARENT} | |
ipam: | |
config: | |
- subnet: ${MACVLAN_SUBNET} | |
services: | |
squid: | |
image: sameersbn/squid:latest | |
container_name: ${CONTAINER_NAME} | |
networks: | |
squid-macvlan: | |
ipv4_address: ${IP_ADDRESS} | |
volumes: | |
- "/etc/timezone:/etc/timezone:ro" | |
- "/etc/localtime:/etc/localtime:ro" | |
- /docker-data/squid/squid.conf:/etc/squid/squid.conf:ro | |
- /docker-data/squid/cache:/var/spool/squid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment