Debian-APT-Mirror
Docker 应用程序 from ich777's Repository
概述
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'
运行时参数
- 网络用户界面
http://[IP]:[PORT:980]/- 网络
bridge- 外壳
bash- 特权
- false
- 额外参数
--restart=unless-stopped
模板配置
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.
- 目标
- /debian-mirror/data
- 价值
- /mnt/user/appdata/debian-mirror/data/
Configuration directory
- 目标
- /debian-mirror/config
- 价值
- /mnt/user/appdata/debian-mirror/config/
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)
- 目标
- CRON_SCHEDULE
- 价值
- 0 1 * * *
Main http port
- 目标
- 980
- 价值
- 980
Force update from the mirror on every start/restart of the container.
- 目标
- FORCE_UPDATE
- 默认值
- false|true
- 价值
- false
- 价值
- 770
- 价值
- 99
- 价值
- 100
- 价值
- 0000
If you change this value you also have to delete the old port mapping and create a new one with the appropriate port.
- 目标
- APACHE2_PORT
- 价值
- 980
下载统计数据
长期下载总量
详细信息
ghcr.io/ich777/debian-mirror在Unraid 上运行 Debian-APT-Mirror 。
Debian-APT-Mirror 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。