my-homelab-configs/infra/artifact-cache/docker-compose.yml

22 lines
682 B
YAML

services:
apt_cache:
image: sameersbn/apt-cacher-ng:3.7.4-20220421
container_name: homelab-apt-cache
restart: unless-stopped
ports:
- "${APT_CACHE_PORT:-3142}:3142"
volumes:
- "${ARTIFACT_CACHE_ROOT:-/data/artifact-cache}/apt-cacher-ng:/var/cache/apt-cacher-ng"
registry_cache:
image: registry:2
container_name: homelab-registry-cache
restart: unless-stopped
ports:
- "${REGISTRY_CACHE_PORT:-5001}:5000"
environment:
REGISTRY_PROXY_REMOTEURL: https://registry-1.docker.io
REGISTRY_STORAGE_DELETE_ENABLED: "true"
volumes:
- "${ARTIFACT_CACHE_ROOT:-/data/artifact-cache}/registry:/var/lib/registry"