-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
147 lines (132 loc) · 4.44 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: '3.8'
x-healthcheck: &default-healthcheck
interval: "5s"
timeout: "1s"
retries: 3
start_period: "20s"
x-logging: &default-logging
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
x-update-mirror: &update-mirror-template
restart: on-failure:3
stop_signal: SIGKILL
logging: *default-logging
environment:
SYNC_TIMEOUT_MIN: 60
x-nginx: &nginx-template
image: docker.pkg.github.com/yamaoka-kitaguchi-lab/linux-repository-mirror/mirror-index-nginx:latest
build:
context: docker/nginx
restart: always
stop_signal: SIGKILL
logging: *default-logging
healthcheck:
<<: *default-healthcheck
test: curl -I http://localhost/ > /dev/null || exit 1
labels:
jp.ac.titech.e.ict.net.intra.mirror.description: "Linux package mirrors for laboratory local"
services:
update-archlinux:
image: docker.pkg.github.com/yamaoka-kitaguchi-lab/linux-repository-mirror/archlinux-mirror:latest
build:
context: docker/pacman
args:
context: archlinux
<<: *update-mirror-template
volumes:
- /srv/mirror/archlinux:/var/spool/pacman-mirror
update-manjaro:
image: docker.pkg.github.com/yamaoka-kitaguchi-lab/linux-repository-mirror/manjaro-mirror:latest
build:
context: docker/pacman
args:
context: manjaro
<<: *update-mirror-template
volumes:
- /srv/mirror/manjaro:/var/spool/pacman-mirror
update-debian:
image: docker.pkg.github.com/yamaoka-kitaguchi-lab/linux-repository-mirror/debian-mirror:latest
build:
context: docker/apt
args:
context: debian
<<: *update-mirror-template
volumes:
- /srv/mirror/debian:/var/spool/apt-mirror/mirror/ftp.jp.debian.org/debian
update-ubuntu:
image: docker.pkg.github.com/yamaoka-kitaguchi-lab/linux-repository-mirror/ubuntu-mirror:latest
build:
context: docker/apt
args:
context: ubuntu
<<: *update-mirror-template
volumes:
- /srv/mirror/ubuntu:/var/spool/apt-mirror/mirror/jp.archive.ubuntu.com/ubuntu
update-raspbian:
image: docker.pkg.github.com/yamaoka-kitaguchi-lab/linux-repository-mirror/raspbian-mirror:latest
build:
context: docker/apt
args:
context: raspbian
<<: *update-mirror-template
volumes:
- /srv/mirror/raspbian:/var/spool/apt-mirror/mirror/archive.raspbian.org/raspbian
update-cumulus:
image: docker.pkg.github.com/yamaoka-kitaguchi-lab/linux-repository-mirror/cumulus-mirror:latest
build:
context: docker/apt
args:
context: cumulus
<<: *update-mirror-template
volumes:
- /srv/mirror/cumulus:/var/spool/apt-mirror/mirror/repo3.cumulusnetworks.com/repo
update-gentoo:
image: docker.pkg.github.com/yamaoka-kitaguchi-lab/linux-repository-mirror/gentoo-mirror:latest
build:
context: docker/portage
args:
context: gentoo
<<: *update-mirror-template
volumes:
- /srv/mirror/gentoo/gentoo-portage:/var/spool/portage-mirror/gentoo-portage
- /srv/mirror/gentoo/gentoo:/var/spool/portage-mirror/gentoo
nginx-all:
<<: *nginx-template
hostname: mirror.intra.net.ict.e.titech.ac.jp
ports:
- 10.0.5.11:80:80
volumes:
- /srv/mirror/ubuntu:/usr/share/nginx/apt/ubuntu:ro
- /srv/mirror/debian:/usr/share/nginx/apt/debian:ro
- /srv/mirror/raspberrypi:/usr/share/nginx/apt/raspberrypi:ro
- /srv/mirror/cumulus:/usr/share/nginx/apt/cumulus:ro
- /srv/mirror/archlinux:/usr/share/nginx/pacman/archlinux:ro
- /srv/mirror/manjaro:/usr/share/nginx/pacman/manjaro:ro
- /srv/mirror/gentoo:/usr/share/nginx/portage/gentoo:ro
nginx-apt:
<<: *nginx-template
hostname: apt.mirror.intra.net.ict.e.titech.ac.jp
ports:
- 10.0.5.12:80:80
volumes:
- /srv/mirror/ubuntu:/usr/share/nginx/apt/ubuntu:ro
- /srv/mirror/debian:/usr/share/nginx/apt/debian:ro
- /srv/mirror/raspbian:/usr/share/nginx/apt/raspbian:ro
- /srv/mirror/cumulus:/usr/share/nginx/apt/cumulus:ro
nginx-pacman:
<<: *nginx-template
hostname: pacman.mirror.intra.net.ict.e.titech.ac.jp
ports:
- 10.0.5.13:80:80
volumes:
- /srv/mirror/archlinux:/usr/share/nginx/pacman/archlinux:ro
- /srv/mirror/manjaro:/usr/share/nginx/pacman/manjaro:ro
nginx-portage:
<<: *nginx-template
hostname: portage.mirror.intra.net.ict.e.titech.ac.jp
ports:
- 10.0.5.14:80:80
volumes:
- /srv/mirror/gentoo:/usr/share/nginx/portage/gentoo:ro