Files
docker-compose/repo_mirror/docker-compose.yml
2026-02-22 23:31:29 +01:00

50 lines
1.1 KiB
YAML

version: "3.9"
services:
nginx:
image: nginx:stable
container_name: mirror-nginx
ports:
- "8383:80"
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"