https://github.com/flavienbwk/alpine-mirror-docker
Download an Alpine Linux mirror for apk downloads
https://github.com/flavienbwk/alpine-mirror-docker
alpine-mirror apk docker docker-compose linux-mirror
Last synced: about 2 months ago
JSON representation
Download an Alpine Linux mirror for apk downloads
- Host: GitHub
- URL: https://github.com/flavienbwk/alpine-mirror-docker
- Owner: flavienbwk
- Created: 2021-03-09T17:01:54.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-04-03T07:54:30.000Z (about 4 years ago)
- Last Synced: 2025-07-25T21:44:24.711Z (10 months ago)
- Topics: alpine-mirror, apk, docker, docker-compose, linux-mirror
- Language: Shell
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# alpine-mirror-docker
Status : tested & working :heavy_check_mark:
This repository refactors [victorb](https://github.com/victorb/alpine-mirror)'s `mirror.sh` script
## Downloading & updating
1. Setup your Alpine version and releases in `mirror.sh`
2. Run the `mirror` container :
```bash
docker-compose build
docker-compose up mirror
```
> Tips: We recommend you downloading the mirror from [a cloud provider](https://www.scaleway.com/en/) and then transfer the files to your computer.
## Serving
1. Check your mirroring succeeded in `./mirror/*` or typing `du -sh ./mirror` to check the volume
The default configuration should make you download _47G_
2. Run the server :
```bash
docker-compose up -d server
```
Server will run on [`localhost:8080`](http://localhost:8080)
## Client configuration
To point your Alpine clients to your mirror, update their `/etc/apk/repositories` file as follow :
```txt
http://localhost:8080/v3.13/main
http://localhost:8080/v3.13/community
```
:point_right: Feel free to add a reverse proxy or update the [nginx configuration file](./nginx.conf) to secure the mirror with SSL/TLS
:point_right: Feel free to send **pull requests** as well !