update mit logging
All checks were successful
release-tag / release-image (push) Successful in 1m27s

This commit is contained in:
2025-08-29 23:27:53 +02:00
parent e86bd571ee
commit 176fe99ac0
2 changed files with 118 additions and 46 deletions

View File

@@ -1,20 +1,21 @@
version: "3.9"
services:
updater:
image: git.send.nrw/sendnrw/go-ubuntu-mirror:latest # unverändert vom vorherigen Setup
container_name: ubuntu-mirror-updater
restart: unless-stopped
volumes:
- mirror-data:/var/spool/apt-mirror
- /docker/ubuntu-apt-mirror/data:/var/spool/apt-mirror
networks:
- traefik-net
image: compose-updater
web:
build:
context: .
dockerfile: Dockerfile # <- die Alpine-Datei oben
image: git.send.nrw/sendnrw/go-ubuntu-mirror:latest
container_name: ubuntu-mirror-web
restart: unless-stopped
depends_on: [updater]
depends_on:
- updater
volumes:
- mirror-data:/data:ro
- /docker/ubuntu-apt-mirror/data:/data
command: >
-archive=/data/mirror/archive.ubuntu.com/ubuntu
-security=/data/mirror/security.ubuntu.com/ubuntu
@@ -22,31 +23,24 @@ services:
-autoindex=true
-cache=600
-addr=:8080
-trust-proxy=true
-log-json=false # auf true setzen für JSON-Lines
labels:
- traefik.enable=true
# HTTPS Router
- 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
# HTTP -> HTTPS Redirect
- 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.middlewares=to-https
- 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
# Service-Ziel (Go-Server auf 8080)
- traefik.http.services.ubuntu_mirror_svc.loadbalancer.server.port=8080
- traefik.http.services.ubuntu_mirror_svc.loadbalancer.server.scheme=http
# Optional: externes Traefik-Netz
# - traefik.docker.network=traefik_proxy
# networks:
# - traefik_proxy
volumes:
mirror-data:
# networks:
# traefik_proxy:
# external: true
networks:
- traefik-net
networks:
traefik-net:
external: true