# APT Cacher NG - Package cache
# Port: 3142
# Caching proxy for Debian packages

version: "3.8"

services:
  apt-cacher-ng:
    image: sameersbn/apt-cacher-ng:latest
    container_name: apt-cacher-ng
    restart: unless-stopped
    ports:
      - "3142:3142"
    environment:
      - TZ=America/Los_Angeles
    volumes:
      - /volume1/docker/apt-cacher-ng/cache:/var/cache/apt-cacher-ng
      - /volume1/docker/apt-cacher-ng/log:/var/log/apt-cacher-ng
      - /volume1/docker/apt-cacher-ng/config:/etc/apt-cacher-ng
    dns:
      - 1.1.1.1
      - 8.8.8.8
    network_mode: bridge
