mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2026-03-15 06:40:00 +01:00
build
This commit is contained in:
@@ -1,15 +1,50 @@
|
|||||||
version: "3.8"
|
version: "3.9"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mirror:
|
|
||||||
image: dtrudgian/docker-yum-mirror
|
nginx:
|
||||||
container_name: repo-mirror
|
image: nginx:stable
|
||||||
restart: unless-stopped
|
container_name: mirror-nginx
|
||||||
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
|
|
||||||
ports:
|
ports:
|
||||||
- "8383:80"
|
- "8383:80"
|
||||||
environment:
|
volumes:
|
||||||
- MIRROR_PATH=/var/www/html/repos
|
- /share/docker_data/repo_mirror/data:/usr/share/nginx/html:ro
|
||||||
- REPOSYNC_OPTS=--download-metadata --delete
|
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