docker run -d \
-v /path/to/repo/data/store:/var/spool/apt-mirror \
-v /path/to/mirror.list:/etc/apt/mirror.list \
nuvious/apt-mirror:latest
NOTE: The container is configured to use a symbolic link from /var/spool/apt-mirror/data
to /usr/share/nginx/html
.
The base_path
and mirror_path
therefore should not be changed, but other paths can be modified. You want to mount
your volume to /var/spool/apt-mirror
using a default configuration below. Other configurations are possible in
docker-compose if one modifies the entrypoint and/or command to update the directory structure to their liking.
set base_path /var/spool/apt-mirror
set mirror_path $base_path/data
set skel_path $base_path/skel
set var_path $base_path/var
set postmirror_script $var_path/postmirror.sh
set defaultarch amd64
set run_postmirror 0
set nthreads 6
set limit_rate 100m
set _tilde 0
set unlink 1
set use_proxy off
set http_proxy 127.0.0.1:3128
set proxy_user user
set proxy_password password
deb http://deb.debian.org/debian stable main contrib non-free-firmware
deb-src http://deb.debian.org/debian stable main contrib non-free-firmware
deb http://security.debian.org/debian-security stable-security main contrib non-free-firmware
deb-src http://security.debian.org/debian-security stable-security main contrib non-free-firmware
deb http://deb.debian.org/debian stable-updates main
deb-src http://deb.debian.org/debian stable-updates main contrib non-free-firmware
deb http://deb.debian.org/debian stable-backports main
deb-src http://deb.debian.org/debian stable-backports main contrib non-free-firmware