mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2026-05-22 13:36:20 +02:00
Compare commits
9 Commits
7e5e82388f
...
23816cdd29
| Author | SHA1 | Date | |
|---|---|---|---|
| 23816cdd29 | |||
| eaddb6c647 | |||
| 003b63414d | |||
| 5c89d98342 | |||
| b5daa5ad7b | |||
| 6bc174457c | |||
| 5d2c868f10 | |||
| 4f591ca9f2 | |||
| c64b4952c8 |
@@ -0,0 +1,45 @@
|
||||
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/scripts/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/debian13.sh:/debian13.sh
|
||||
command: /debian13.sh
|
||||
restart: "no"
|
||||
# Ubuntu mirror
|
||||
ubuntu-sync:
|
||||
image: ubuntu:24.04
|
||||
container_name: ubuntu-sync
|
||||
user: root
|
||||
volumes:
|
||||
- /share/docker_data/repo_mirror/data/ubuntu:/mirror
|
||||
- /share/docker_data/repo_mirror/scripts/ubuntu.sh:/ubuntu.sh
|
||||
command: /ubuntu.sh
|
||||
restart: "no"
|
||||
# Optional: Nginx to serve both mirrors
|
||||
nginx:
|
||||
image: nginx:1.28
|
||||
container_name: mirror-nginx
|
||||
ports:
|
||||
- "8383:80"
|
||||
volumes:
|
||||
- /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
|
||||
Reference in New Issue
Block a user