compose.yml aktualisiert
All checks were successful
release-tag / release-image (push) Successful in 1m33s
All checks were successful
release-tag / release-image (push) Successful in 1m33s
This commit is contained in:
21
compose.yml
21
compose.yml
@@ -1,13 +1,12 @@
|
|||||||
version: "3.9"
|
|
||||||
services:
|
services:
|
||||||
updater:
|
updater:
|
||||||
container_name: ubuntu-mirror-updater
|
container_name: ubuntu-mirror-updater
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
image: git.send.nrw/sendnrw/ubuntu-mirror-sync:latest
|
||||||
volumes:
|
volumes:
|
||||||
- /docker/ubuntu-apt-mirror/data:/var/spool/apt-mirror
|
- /docker/ubuntu-apt-mirror/data:/var/spool/apt-mirror
|
||||||
networks:
|
networks:
|
||||||
- traefik-net
|
- traefik-net
|
||||||
image: compose-updater
|
|
||||||
web:
|
web:
|
||||||
image: git.send.nrw/sendnrw/go-ubuntu-mirror:latest
|
image: git.send.nrw/sendnrw/go-ubuntu-mirror:latest
|
||||||
container_name: ubuntu-mirror-web
|
container_name: ubuntu-mirror-web
|
||||||
@@ -15,20 +14,30 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- updater
|
- updater
|
||||||
volumes:
|
volumes:
|
||||||
- /docker/ubuntu-apt-mirror/data:/data
|
- /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 -autoindex=true -cache=600 -addr=:8080 -trust-proxy=true -log-json=false
|
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
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- 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.rule=Host(`ubuntu-24-04.send.nrw`)
|
||||||
- traefik.http.routers.ubuntu_mirror.entrypoints=websecure
|
- traefik.http.routers.ubuntu_mirror.entrypoints=websecure
|
||||||
- traefik.http.routers.ubuntu_mirror.tls=true
|
- traefik.http.routers.ubuntu_mirror.tls=true
|
||||||
- traefik.http.routers.ubuntu_mirror.tls.certresolver=letsencrypt
|
- traefik.http.routers.ubuntu_mirror.tls.certresolver=letsencrypt
|
||||||
- traefik.http.routers.ubuntu_mirror.service=ubuntu_mirror_svc
|
- 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.rule=Host(`ubuntu-24-04.send.nrw`)
|
||||||
- traefik.http.routers.ubuntu_mirror_http.entrypoints=web
|
- traefik.http.routers.ubuntu_mirror_http.entrypoints=web
|
||||||
- traefik.http.routers.ubuntu_mirror_http.service=ubuntu_mirror_svc
|
- 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.scheme=https
|
||||||
- traefik.http.middlewares.to-https.redirectscheme.permanent=true
|
- traefik.http.middlewares.to-https.redirectscheme.permanent=true
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user