forked from intel/Edge-Software-Provisioner
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
305 lines (292 loc) · 8.79 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
---
# Copyright (C) 2023 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
version: '3'
networks:
gitea:
external: false
services:
core:
image: intel/esp-core
environment:
- CONTAINER_IMAGES=intel/esp-core intel/esp-gitea intel/esp-dnsmasq intel/esp-squid intel/esp-web intel/esp-git intel/esp-aws-cli intel/esp-uos-builder intel/esp-qemu intel/esp-certbot intel/esp-smb intel/esp-dyn-profile intel/esp-logging-agent intel/esp-uos-kernel intel/esp-uos-wifi intel/esp-uos-firmware-wifi intel/esp-uos-firmware-lan intel/esp-uos-dyninit
- BUILDER_PATH=${PWD}
- PATH=${PWD}:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
- http_proxy=${http_proxy:-}
- https_proxy=${https_proxy:-}
- ftp_proxy=${ftp_proxy:-}
- no_proxy=${no_proxy:-}
- HTTP_PROXY=${HTTP_PROXY:-}
- HTTPS_PROXY=${HTTPS_PROXY:-}
- FTP_PROXY=${FTP_PROXY:-}
- NO_PROXY=${NO_PROXY:-}
ipc: host
network_mode: host
pid: host
privileged: true
restart: always
userns_mode: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./:${PWD}/root
- ./conf:${PWD}/conf:shared
- ./data:${PWD}/data:shared
- ./dockerfiles/uos:${PWD}/dockerfiles/uos:shared
- ./output:${PWD}/output:shared
- ./template:${PWD}/template:shared
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "1m"
web:
image: intel/esp-web
restart: always
environment:
- CN=edgebuilder.local
- O=edgebuilder
- OU=edgebuilder
- C=US
- http_proxy=${http_proxy:-}
- https_proxy=${https_proxy:-}
- ftp_proxy=${ftp_proxy:-}
- no_proxy=${no_proxy:-}
- HTTP_PROXY=${HTTP_PROXY:-}
- HTTPS_PROXY=${HTTPS_PROXY:-}
- FTP_PROXY=${FTP_PROXY:-}
- NO_PROXY=${NO_PROXY:-}
ports:
- 80:80
- 443:443
volumes:
# Don't make these read-only, or else docker will fail to mount
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
- ./data/etc/ssl/private:/etc/ssl/private
- ./data/usr/share/nginx/html:/usr/share/nginx/html:shared
- ./data/srv/tftp:/usr/share/nginx/html/tftp:shared
- ./data/srv/tftp/pxelinux.cfg/:/usr/share/nginx/html/tftp/pxelinux.cfg/
- ./data/srv/tftp/pxelinux.cfg_legacy/:/usr/share/nginx/html/tftp/legacy/pxelinux.cfg/
- ./data/srv/tftp/pxelinux.cfg/:/usr/share/nginx/html/tftp/efi32/pxelinux.cfg/
- ./data/srv/tftp/pxelinux.cfg/:/usr/share/nginx/html/tftp/efi64/pxelinux.cfg/
- ./data/srv/tftp/images/uos/:/usr/share/nginx/html/tftp/legacy/images/uos/
- ./data/srv/tftp/images/uos/:/usr/share/nginx/html/tftp/efi32/images/uos/
- ./data/srv/tftp/images/uos/:/usr/share/nginx/html/tftp/efi64/images/uos/
- ./data/usr/share/nginx/html/web-cert:/etc/ssl/cert
- ./template/nginx:/usr/share/nginx/template
depends_on:
- core
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "1m"
certbot:
image: intel/esp-certbot
restart: on-failure
environment:
- http_proxy=${http_proxy:-}
- https_proxy=${https_proxy:-}
- ftp_proxy=${ftp_proxy:-}
- no_proxy=${no_proxy:-}
- HTTP_PROXY=${HTTP_PROXY:-}
- HTTPS_PROXY=${HTTPS_PROXY:-}
- FTP_PROXY=${FTP_PROXY:-}
- NO_PROXY=${NO_PROXY:-}
ports: []
volumes:
- ./conf:/opt/esp/conf
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
- ./data/certbot/lib:/var/lib/letsencrypt
- ./data/etc/ssl/private:/etc/ssl/private
- ./data/usr/share/nginx/html/web-cert:/etc/ssl/cert
depends_on:
- web
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "1m"
dnsmasq:
image: intel/esp-dnsmasq
restart: always
environment:
- http_proxy=${http_proxy:-}
- https_proxy=${https_proxy:-}
- ftp_proxy=${ftp_proxy:-}
- no_proxy=${no_proxy:-}
- HTTP_PROXY=${HTTP_PROXY:-}
- HTTPS_PROXY=${HTTPS_PROXY:-}
- FTP_PROXY=${FTP_PROXY:-}
- NO_PROXY=${NO_PROXY:-}
volumes:
- ./template/pxe_bg.png:/srv/tftp/pxe_bg.png
- ./template/pxe_bg.png:/srv/tftp/legacy/pxe_bg.png
- ./template/pxe_bg.png:/srv/tftp/efi32/pxe_bg.png
- ./template/pxe_bg.png:/srv/tftp/efi64/pxe_bg.png
- ./data/srv/tftp/images:/srv/tftp/images
- ./data/srv/tftp/images:/srv/tftp/legacy/images
- ./data/srv/tftp/images:/srv/tftp/efi32/images
- ./data/srv/tftp/images:/srv/tftp/efi64/images
- ./data/srv/tftp/pxelinux.cfg/:/srv/tftp/pxelinux.cfg/
- ./data/srv/tftp/pxelinux.cfg_legacy/:/srv/tftp/legacy/pxelinux.cfg/
- ./data/srv/tftp/pxelinux.cfg/:/srv/tftp/efi32/pxelinux.cfg/
- ./data/srv/tftp/pxelinux.cfg/:/srv/tftp/efi64/pxelinux.cfg/
- ./data/srv/tftp/:/usr/share/nginx/html/tftp/:shared
- ./data/etc:/etc/dnsmasq:shared
network_mode: host
cap_add:
- NET_ADMIN
depends_on:
- core
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "1m"
# driver: "fluentd"
# options:
# fluentd-address: "localhost:24224"
registry-mirror:
image: registry:2
restart: always
environment:
- http_proxy=${http_proxy:-}
- https_proxy=${https_proxy:-}
- ftp_proxy=${ftp_proxy:-}
- no_proxy=${no_proxy:-}
- HTTP_PROXY=${HTTP_PROXY:-}
- HTTPS_PROXY=${HTTPS_PROXY:-}
- FTP_PROXY=${FTP_PROXY:-}
- NO_PROXY=${NO_PROXY:-}
ports:
- 5557:5000
volumes:
- ./template/registry/:/etc/docker/registry/:shared
- ./data/var/lib/registry:/var/lib/registry
command: "/etc/docker/registry/config.yml"
depends_on:
- core
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "1m"
squid:
image: intel/esp-squid
restart: always
environment:
- CN=squid.local
- O=squid
- OU=squid
- C=US
- http_proxy=${http_proxy:-}
- https_proxy=${https_proxy:-}
- ftp_proxy=${ftp_proxy:-}
- no_proxy=${no_proxy:-}
- HTTP_PROXY=${HTTP_PROXY:-}
- HTTPS_PROXY=${HTTPS_PROXY:-}
- FTP_PROXY=${FTP_PROXY:-}
- NO_PROXY=${NO_PROXY:-}
ports:
- 3128:3128
- 4128:4128
volumes:
- ./template/squid:/etc/squid/template
- ./data/var/cache/squid:/var/spool/squid
- ./data/var/log/squid:/var/log/squid
- ./data/usr/share/nginx/html/squid-cert:/etc/squid-cert
depends_on:
- core
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "1m"
mirror:
image: intel/esp-gitea
environment:
- USER_UID=1000
- USER_GID=1000
- DISABLE_REGISTRATION=true
- DEFAULT_PRIVATE=public
- ENABLE_PUSH_CREATE_USER=true
- ENABLE_PUSH_CREATE_ORG=true
- http_proxy=${http_proxy:-}
- https_proxy=${https_proxy:-}
- ftp_proxy=${ftp_proxy:-}
- no_proxy=${no_proxy:-}
- HTTP_PROXY=${HTTP_PROXY:-}
- HTTPS_PROXY=${HTTPS_PROXY:-}
- FTP_PROXY=${FTP_PROXY:-}
- NO_PROXY=${NO_PROXY:-}
restart: always
networks:
- gitea
volumes:
- ./data/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3003:3000"
- "222:22"
depends_on:
- core
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "1m"
smb:
image: intel/esp-smb
restart: always
environment:
- http_proxy=${http_proxy:-}
- https_proxy=${https_proxy:-}
- ftp_proxy=${ftp_proxy:-}
- no_proxy=${no_proxy:-}
- HTTP_PROXY=${HTTP_PROXY:-}
- HTTPS_PROXY=${HTTPS_PROXY:-}
- FTP_PROXY=${FTP_PROXY:-}
- NO_PROXY=${NO_PROXY:-}
ports:
- 445:445
volumes:
- ./data/usr/share/nginx/html/smb:/smbshare
- ./template/smb/smb.conf:/etc/samba/smb.conf
tty: true
# network_mode: bridge
depends_on:
- core
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "1m"
dyn-profile:
image: intel/esp-dyn-profile
ports:
- 8580:8080
depends_on:
- web
volumes:
- ./conf:/conf:shared
- ./data/dyn-profile:/data
environment:
- host_ip=${HOST_IP:-}
- dyn_url=${DYN_URL:-}
- dyn_url_user=${DYN_URL_USER:-}
- dyn_url_token=${DYN_URL_TOKEN:-}
- http_proxy=${http_proxy:-}
- https_proxy=${https_proxy:-}
- no_proxy=${no_proxy:-}
- HTTP_PROXY=${HTTP_PROXY:-}
- HTTPS_PROXY=${HTTPS_PROXY:-}
- NO_PROXY=${NO_PROXY:-}
logging-server:
image: fluent/fluent-bit:2.1.4
network_mode: host
restart: always
volumes:
- ./data/etc:/fluent-bit/etc