From cf5f8d8c90f84f08b830416f2d4c654e426597e4 Mon Sep 17 00:00:00 2001 From: mo8it Date: Mon, 21 Oct 2024 13:54:32 +0200 Subject: [PATCH] Add download container --- containers/download/download.container | 12 ++++++++++++ volumes/traefik/dynamic.yml | 7 +++++++ 2 files changed, 19 insertions(+) create mode 100644 containers/download/download.container diff --git a/containers/download/download.container b/containers/download/download.container new file mode 100644 index 0000000..ecb2ad9 --- /dev/null +++ b/containers/download/download.container @@ -0,0 +1,12 @@ +[Container] +Image=docker.io/library/nginx:1 +AutoUpdate=registry +Network=traefik.network +Volume=%h/sync/volumes/nginx.conf:/etc/nginx/nginx.conf:z,ro +Volume=%h/volumes/download:/usr/share/nginx/html:Z,ro + +[Service] +Restart=always + +[Install] +WantedBy=default.target diff --git a/volumes/traefik/dynamic.yml b/volumes/traefik/dynamic.yml index 4dc3e76..dc10898 100644 --- a/volumes/traefik/dynamic.yml +++ b/volumes/traefik/dynamic.yml @@ -68,6 +68,9 @@ http: to_collective_score_rust: rule: Host(`collective-score-rust.mo8it.com`) service: collective_score_rust + to_download: + rule: Host(`download.mo8it.com`) + service: download services: forgejo: @@ -122,3 +125,7 @@ http: loadBalancer: servers: - url: http://systemd-collective-score-rust + download: + loadBalancer: + servers: + - url: http://systemd-download