Skip to content

Instantly share code, notes, and snippets.

@vladbabii
Created April 9, 2024 16:23
Show Gist options
  • Save vladbabii/acd8ccd0c9a837baecaedbf2807ac458 to your computer and use it in GitHub Desktop.
Save vladbabii/acd8ccd0c9a837baecaedbf2807ac458 to your computer and use it in GitHub Desktop.
docker compose apt cacher ng
version: "2.1"
services:
apt-cacher-ng:
image: sameersbn/apt-cacher-ng:3.7.4-20220421
container_name: apt-cacher-ng
ports:
- <ip>:3142:3142
volumes:
- /cache/apt:/var/cache/apt-cacher-ng
restart: unless-stopped
labels:
- "traefik.http.routers.aptcache.rule=Host(`<domain>`)"
- "traefik.enable=true"
- "traefik.port=3142"
- "com.centurylinklabs.watchtower.enable=true" # watchtower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment