From 5c89d98342b5de87b0cd62212ba122d65b41b421 Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 23 Feb 2026 00:37:18 +0100 Subject: [PATCH] build --- repo_mirror/docker-compose.yml | 49 +++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/repo_mirror/docker-compose.yml b/repo_mirror/docker-compose.yml index 4ae1ecb..8cc0c14 100644 --- a/repo_mirror/docker-compose.yml +++ b/repo_mirror/docker-compose.yml @@ -1,31 +1,36 @@ version: "3.9" services: + # Rocky Linux 9 mirror + rocky9-sync: + image: rockylinux:9 + container_name: rocky9-sync + user: root + volumes: + - /share/docker_data/repo_mirror/data/rocky/9:/repos # mirror storage + - /share/docker_data/repo_mirror/rocky9.sh:/rocky9.sh + command: /rocky9.sh + restart: "no" + # Debian mirror + debian-sync: + image: ubuntu:24.04 + container_name: debian-sync + user: root + volumes: + - /share/docker_data/repo_mirror/data/debian:/mirror + - /share/docker_data/repo_mirror/scripts/debian.sh:/debian.sh + command: /debian.sh + restart: "no" + + # Optional: Nginx to serve both mirrors nginx: - image: nginx:stable + image: nginx:1.28 container_name: mirror-nginx ports: - "8383:80" volumes: - - /share/docker_data/repo_mirror/data:/usr/share/nginx/html:ro - - /share/docker_data/repo_mirror/config/nginx.conf:/etc/nginx/conf.d/default.conf:ro - restart: unless-stopped - - rocky9-sync: - image: rockylinux:9 - container_name: rocky9-sync - volumes: - - /share/docker_data/repo_mirror/data/rocky/9:/repos - - /share/docker_data/repo_mirror/data/rocky9.sh:/rocky9.sh - command: /rocky9.sh - restart: "no" - - debian-sync: - image: debian:stable - container_name: debian-sync - volumes: - - /share/docker_data/repo_mirror/data/debian/13:/mirror - - /share/docker_data/repo_mirror/data/debian13.sh:/debian13.sh - command: /debian13.sh - restart: "no" \ No newline at end of file + - /share/docker_data/repo_mirror/data/rocky:/usr/share/nginx/html/rocky + - /share/docker_data/repo_mirror/data/debian:/usr/share/nginx/html/debian + - /share/docker_data/repo_mirror/config/nginx.conf:/etc/nginx/nginx.conf:ro + restart: unless-stopped \ No newline at end of file