https://github.com/nuvious/apt-mirror-docker
A dockerized version of apt-mirror with apache2
https://github.com/nuvious/apt-mirror-docker
Last synced: 12 months ago
JSON representation
A dockerized version of apt-mirror with apache2
- Host: GitHub
- URL: https://github.com/nuvious/apt-mirror-docker
- Owner: nuvious
- License: mit
- Created: 2023-11-16T04:43:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-30T14:04:48.000Z (12 months ago)
- Last Synced: 2025-07-05T18:09:42.996Z (12 months ago)
- Language: Dockerfile
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yet another apt-mirror container
[](https://github.com/nuvious/apt-mirror-docker/actions/workflows/build-container.yaml)
## Docker Usage
```bash
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
```
## Example mirror.list
**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.
```plaintext
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
```