my-homelab-configs/infra/artifact-cache
juvdiaz e8dd88fafe Add optional artifact cache stack 2026-06-29 17:49:26 -06:00
..
README.md Add optional artifact cache stack 2026-06-29 17:49:26 -06:00
docker-compose.yml Add optional artifact cache stack 2026-06-29 17:49:26 -06:00

README.md

Homelab Artifact Cache

This optional Debian-host stack caches repeated downloads during rebuilds.

  • apt-cacher-ng on port 3142 for Debian/Ubuntu apt packages
  • Docker registry pull-through cache on port 5001 for Docker Hub images

It is intentionally separate from the main homelab pipeline. Start it when you want faster rebuilds and a little more tolerance for upstream outages.

cd infra/artifact-cache
docker compose up -d

Client examples:

echo 'Acquire::http::Proxy "http://192.168.100.73:3142";' | sudo tee /etc/apt/apt.conf.d/01homelab-cache
docker pull 192.168.100.73:5001/library/debian:bookworm