Debian-APT-Mirror

Debian-APT-Mirror

Docker-Anwendung from ich777's Repository

Übersicht

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'

Laufzeit-Argumente

Web-UI
http://[IP]:[PORT:980]/
Netzwerk
bridge
Shell
bash
Privilegiert
false
Extra Params
--restart=unless-stopped

Konfiguration der Vorlage

Main Data PathPathrw

Keep in mind that the mirror can consume very much space (stable main contrib non-free: Will take about 200GB of hard drive space!) - you can also put the data directory somewhere on a disk outside the Array or Cache for example with Unassigned Devices.

Ziel
/debian-mirror/data
Wert
/mnt/user/appdata/debian-mirror/data/
Main Configuration PathPathrw

Configuration directory

Ziel
/debian-mirror/config
Wert
/mnt/user/appdata/debian-mirror/config/
Mirror ScheduleVariable

Set your cron schedule for your mirror (by default it is set to 01:00 - head over to https://crontab.guru/ to create your own if you want to customize it)

Ziel
CRON_SCHEDULE
Wert
0 1 * * *
Mirror http portPorttcp

Main http port

Ziel
980
Wert
980
Force update on startVariable

Force update from the mirror on every start/restart of the container.

Ziel
FORCE_UPDATE
Standard
false|true
Wert
false
DATA_PERMVariable
Wert
770
UIDVariable
Wert
99
GIDVariable
Wert
100
UMASKVariable
Wert
0000
Apache2 Port in ContainerVariable

If you change this value you also have to delete the old port mapping and create a new one with the appropriate port.

Ziel
APACHE2_PORT
Wert
980

Statistik herunterladen

40,242
Downloads insgesamt
98
Dieser Monat
90
Durchschnittlich / Monat

Gesamte Downloads im Laufe der Zeit

Tabelle laden...

Einzelheiten

Repository
ghcr.io/ich777/debian-mirror
Zuletzt aktualisiert2025-12-11
Erstmals gesehen2021-08-06

Führen Sie Debian-APT-Mirror auf Unraid aus.

Debian-APT-Mirror ist gelistet in Community Apps für Unraid OS. Erkunden Sie Unraid, um einen flexiblen Heimserver, ein NAS oder ein Heimlabor aufzubauen.