Reduce bandwidth usage and speed up software installations across your network with a specialized caching proxy for Linux distribution packages. Primarily designed for Debian and Debian-based systems, this tool efficiently caches downloaded packages so multiple machines can update without fetching the same files from the internet repeatedly. Key benefits include: Low Overhead: Operates without requiring an interpreter or massive runtime libraries. High Performance: Utilizes native system functions like mmap and sendfile instead of forking or using complex synchronization methods, ensuring minimal resource consumption. Built-in Web Frontend: Easily view detailed statistical reports and trigger administrative actions, such as importing existing package files directly into the cache. Simple Configuration: Requires only minor adjustments to client-side mirror URLs or proxy settings, with server-side setup often working perfectly out of the box.
services:
apt-cacher-ng:
image: mbentley/apt-cacher-ng:latest
container_name: apt-cacher-ng
restart: unless-stopped
ports:
- "3142:3142"
volumes:
- ./data:/var/cache/apt-cacher-ng
environment:
- TZ=UTC
# Optional upstream proxy configuration
- ACNG_PROXY=${ACNG_PROXY}# Optional: Upstream proxy URL (format: http://username:password@proxyhost:port)
# Leave empty if not using an upstream proxy
ACNG_PROXY=Auto-fetched about 23 hours ago