Sign inSign up

ich777/debian-mirror

By ich777

•Updated 10 months ago

Image
0

10K+

ich777/debian-mirror repository overview

⁠Debian-APT-Mirror Docker optimized for Unraid

This container will run apt-mirror and Apache2. This allows you to create a local apt mirror for Debian packages.

On first run you will have to edit the mirror.list file that lives in your CONFIG_DIR which repositories you want to sync and other settings like how many threads to use for downloading,... Restart the container afterwards (keep an eye on the logs the container will tell you what to do).

ATTENTION/WARNING: Keep in mind that the first sync can take very long depending on how much repositories you've selected (stable main contrib non-free: Will take about 200GB of hard drive space!).

Update from the mirror files: By default a cron job will run every day at 01:00 which will update your mirror.

Mirror address: The default address for the mirror is 'http://ipFROMtheCONTAINER:980⁠' Add something like this to your '/etc/apt/sources.list': 'deb http://ipFROMtheCONTAINER:980/debian⁠ stable main contrib non-free'

⁠Env params

NameValueExample
DATA_DIRBase directory/debian-mirror
CONFIG_DIRFolder for configfiles (mirror.list & cron)$DATA_DIR/config
MIRROR_DIRFolder for the mirror data$DATA_DIR/data
APACHE2_PORTSet which port in the container to use for Apache2980
CRON_SCHEDULECron schedule. Default: every day at 1am0 1 * * *
FORCE_UPDATEForce update from mirror on every start/restart of the containerfalse
UIDUser Identifier99
GIDGroup Identifier100
UMASKUmask value for new created files0000
DATA_PERMSData permissions for config folder770

⁠Run example

docker run --name Debian-Mirror -d \
	-p 980:980 \
	--env 'APACHE2_PORT=980' \
	--env 'CRON_SCHEDULE=0 1 * * *' \
	--env 'FORCE_UPDATE=false' \
	--env 'UID=99' \
	--env 'GID=100' \
	--env 'UMASK=0000' \
	--env 'DATA_PERMS=770' \
	--volume /mnt/cache/appdata/debian-mirror/data:/debian-mirror/data \
	--volume /mnt/cache/appdata/debian-mirror/config:/debian-mirror/config \
	--restart=unless-stopped \
	ich777/debian-mirror

This Docker was mainly edited for better use with Unraid, if you don't use Unraid you should definitely try it!

⁠Support Thread: https://forums.unraid.net/topic/83786-support-ich777-application-dockers/⁠

Tag summary

Content type

Image

Digest

sha256:209079065…

Size

65.2 MB

Last updated

10 months ago

docker pull ich777/debian-mirror