From 4f591ca9f2bf0f83116aa3ea2ae390bf83f668ab Mon Sep 17 00:00:00 2001 From: jaydee Date: Sun, 22 Feb 2026 23:31:29 +0100 Subject: [PATCH] build --- repo_mirror/docker-compose.yml | 57 +++++++++++++++++++++++++++------- 1 file changed, 46 insertions(+), 11 deletions(-) diff --git a/repo_mirror/docker-compose.yml b/repo_mirror/docker-compose.yml index 0c86eaa..51b9bf1 100644 --- a/repo_mirror/docker-compose.yml +++ b/repo_mirror/docker-compose.yml @@ -1,15 +1,50 @@ -version: "3.8" +version: "3.9" services: - mirror: - image: dtrudgian/docker-yum-mirror - container_name: repo-mirror - restart: unless-stopped - volumes: - - /share/docker_data/repo_mirror/config/repos.conf:/etc/yum.repos.d/repos.conf:ro - - /share/docker_data/repo_mirror/data/repo:/var/www/html/repos + + nginx: + image: nginx:stable + container_name: mirror-nginx ports: - "8383:80" - environment: - - MIRROR_PATH=/var/www/html/repos - - REPOSYNC_OPTS=--download-metadata --delete \ No newline at end of file + volumes: + - /share/docker_data/repo_mirror/data:/usr/share/nginx/html:ro + restart: unless-stopped + + rocky9-sync: + image: rockylinux:9 + container_name: rocky9-sync + volumes: + - /share/docker_data/repo_mirror/data/rocky/9:/repos + command: > + bash -c " + dnf install -y dnf-plugins-core && + dnf reposync + --repoid=baseos + --repoid=appstream + --repoid=extras + --download-path=/repos + --download-metadata + --delete + " + restart: "no" + + debian-sync: + image: debian:stable + container_name: debian-sync + volumes: + - /share/docker_data/repo_mirror/data/debian:/mirror + command: > + bash -c " + apt update && + apt install -y debmirror && + debmirror --arch=amd64 + --method=http + --host=deb.debian.org + --root=/debian + --dist=bookworm + --section=main + --nosource + /mirror + " + restart: "no" \ No newline at end of file