Files
go-ubuntu-mirror/compose.yml
jbergner 176fe99ac0
All checks were successful
release-tag / release-image (push) Successful in 1m27s
update mit logging
2025-08-29 23:27:53 +02:00

46 lines
1.7 KiB
YAML

version: "3.9"
services:
updater:
container_name: ubuntu-mirror-updater
restart: unless-stopped
volumes:
- /docker/ubuntu-apt-mirror/data:/var/spool/apt-mirror
networks:
- traefik-net
image: compose-updater
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
command: >
-archive=/data/mirror/archive.ubuntu.com/ubuntu
-security=/data/mirror/security.ubuntu.com/ubuntu
-old=/data/mirror/old-releases.ubuntu.com/ubuntu
-autoindex=true
-cache=600
-addr=:8080
-trust-proxy=true
-log-json=false # auf true setzen für JSON-Lines
labels:
- traefik.enable=true
- 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.services.ubuntu_mirror_svc.loadbalancer.server.port=8080
- traefik.http.services.ubuntu_mirror_svc.loadbalancer.server.scheme=http
- 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.middlewares.to-https.redirectscheme.scheme=https
- traefik.http.middlewares.to-https.redirectscheme.permanent=true
networks:
- traefik-net
networks:
traefik-net:
external: true