Skip to content

Instantly share code, notes, and snippets.

@double16
Created September 9, 2019 11:37
Show Gist options
  • Save double16/cef664300078475c563581659111d1eb to your computer and use it in GitHub Desktop.
Save double16/cef664300078475c563581659111d1eb to your computer and use it in GitHub Desktop.
Docker Compose file for apt/yum/http cache
version: '3.7'
services:
aptcache:
image: pdouble16/docker-apt-cacher-ng:latest
restart: always
ports:
- "3142:3142"
volumes:
- /Users/double/aptcache:/var/cache/apt-cacher-ng
healthcheck:
test: ["CMD", "curl", "-s", "-f", "-o", "/dev/null", "http://localhost:3142/acng-report.html"]
interval: 60s
timeout: 10s
retries: 3
extra_hosts:
gatekeeper: 192.168.1.254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment