mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2026-03-14 22:30:01 +01:00
build
This commit is contained in:
@@ -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
|
||||
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"
|
||||
Reference in New Issue
Block a user