# ManjaroMirror

ManjaroMirror is a self-hosted development app. Docker container that mirrors Manjaro Linux packages using rsync and serves them via nginx. It is open source and self-hosted, installable on Docker Hub and Unraid.

Canonical page: https://ourlocalhost.com/app/2515/manjaromirror

## Description

Docker container that mirrors Manjaro Linux packages using rsync and serves them via nginx. Built on Alpine Linux, it lets homelab operators maintain a local package repository to reduce upstream bandwidth usage and speed up installations and updates for Manjaro systems on the local network.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

11/100 (Low), based on 3 of 4 factors.
- Maintained: 0 (last commit 818 days ago)
- Popular: 10 (2 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)

## Links

- GitHub: https://github.com/Cobbert/manjaro-package-mirror
- Docker Hub: https://hub.docker.com/r/cobbert/manjaro-package-mirror
- Official website: https://wiki.manjaro.org
- Documentation: https://wiki.manjaro.org/index.php/Manjaro_Mirrors
- Unraid: https://ca.unraid.net/apps/manjaromirror-1oq6h8d02lz93l?q=ManjaroMirror

## Common questions

### Which container port does the mirror expose, and how do I publish it on the host?

The image serves packages over port 80. You can publish it with a Docker port mapping such as -p 8080:80.

### Where should I put the mirrored package files so they survive container rebuilds?

Mount a host directory to /srv/http/manjaro inside the container. Use a volume such as -v /path/to/storage:/srv/http/manjaro to persist the repository data.

### Can I point the container at a different Manjaro rsync mirror?

Yes. Set the SOURCE_MIRROR environment variable to the rsync mirror you want to synchronize from.

### How is the synchronization interval controlled?

Use the SLEEP environment variable to adjust the pause time between synchronizations. For example, SLEEP=6h sets the interval to six hours.

### Does the container produce log output immediately after startup?

It may take up to five minutes for the first files to load. No log output until then is not an error.

---
Source: Our Local Host (https://ourlocalhost.com/app/2515/manjaromirror), the self-hosted and open-source app directory.
