Files
go-ubuntu-mirror/compose.yml
groot f35f8f91c3
Some checks failed
release-tag / release-image (push) Has been cancelled
compose.yml aktualisiert
2025-10-09 21:25:34 +00:00

49 lines
1.9 KiB
YAML

services:
updater:
container_name: ubuntu-mirror-updater
restart: unless-stopped
image: git.send.nrw/sendnrw/ubuntu-mirror-sync:latest
volumes:
- /docker/ubuntu-apt-mirror/data:/var/spool/apt-mirror
networks:
- traefik-net
web:
image: git.send.nrw/sendnrw/go-ubuntu-mirror:latest
container_name: ubuntu-mirror-web
restart: unless-stopped
depends_on:
- updater
volumes:
- /docker/ubuntu-apt-mirror/data:/data:ro
command:
- -archive=/data/mirror/archive.ubuntu.com/ubuntu
- -security=/data/mirror/security.ubuntu.com/ubuntu
- -old=/data/mirror/old-releases.ubuntu.com/ubuntu
- -ms=/data/mirror/packages.microsoft.com/repos
- -autoindex=true
- -cache=600
- -addr=:8080
- -trust-proxy=true
- -log-json=false
labels:
- traefik.enable=true
- traefik.docker.network=traefik-net
- traefik.http.routers.ubuntu_mirror.rule=Host(`ubuntu-24-04.send.nrw`)
- traefik.http.routers.ubuntu_mirror.entrypoints=websecure
- traefik.http.routers.ubuntu_mirror.tls=true
- traefik.http.routers.ubuntu_mirror.tls.certresolver=letsencrypt
- traefik.http.routers.ubuntu_mirror.service=ubuntu_mirror_svc
- traefik.http.routers.ubuntu_mirror_http.rule=Host(`ubuntu-24-04.send.nrw`)
- traefik.http.routers.ubuntu_mirror_http.entrypoints=web
- traefik.http.routers.ubuntu_mirror_http.service=ubuntu_mirror_svc
- traefik.http.routers.ubuntu_mirror_http.middlewares=to-https@docker
- traefik.http.services.ubuntu_mirror_svc.loadbalancer.server.port=8080
- traefik.http.services.ubuntu_mirror_svc.loadbalancer.server.scheme=http
- traefik.http.middlewares.to-https.redirectscheme.scheme=https
- traefik.http.middlewares.to-https.redirectscheme.permanent=true
networks:
- traefik-net
networks:
traefik-net:
external: true