HUB
Sign inSign up
alpine-mirror logo

11notes/alpine-mirror

By 11notes

•Updated over 1 year ago

Run your own Alpine mirror for all your Alpine installations

Image
Operating systems
0

1.7K

11notes/alpine-mirror repository overview

Banner

⁠🏔️ Alpine - Alpine Mirror

size version pulls stars

Run your own Alpine mirror for all your Alpine installations

⁠SYNOPSIS

What can I do with this? Host a local Alpine mirror. The mirror will only cache the versions you specified during start or the folders which are present in /mirror/var. All others versions will be proxied to the default CDN of Alpine. The mirror will auto update all packages if new packages are pushed by the Alpine team.

⁠VOLUMES

  • /mirror/etc - Directory of additional nginx configurations
  • /mirror/var - Directory of all mirror data

⁠COMPOSE

services:
  alpine-mirror:
    image: "11notes/alpine-mirror:stable"
    container_name: "alpine-mirror"
    command: [ "v3.19", "v3.20" ]
    ports:
      - "8080:8080"
    volumes:
      - "var:/mirror/var"
volumes:
  var:

⁠DEFAULT SETTINGS

ParameterValueDescription
userdockeruser docker
uid1000user id 1000
gid1000group id 1000
home/mirrorhome directory of user docker

⁠ENVIRONMENT

ParameterValueDefault
TZTime Zone⁠
DEBUGShow debug information
DNSspace separated list of DNS servers9.9.9.10 8.8.4.4

⁠PARENT IMAGE

⁠BUILT WITH

⁠TIPS

  • Allow non-root ports < 1024 via echo "net.ipv4.ip_unprivileged_port_start={n}" > /etc/sysctl.d/ports.conf
  • Use a reverse proxy like Traefik, Nginx to terminate TLS with a valid certificate
  • Use Let’s Encrypt certificates to protect your SSL endpoints

⁠ElevenNotes™️

This image is provided to you at your own risk. Always make backups before updating an image to a new version. Check the changelog for breaking changes. You can find all my repositories on github⁠.

Tag summary

Content type

Image

Digest

sha256:44ed85ef4…

Size

16.5 MB

Last updated

over 1 year ago

docker pull 11notes/alpine-mirror:stable