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

41 lines
924 B
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
- /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:/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"