-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap_https.sh
More file actions
executable file
·70 lines (54 loc) · 1.18 KB
/
bootstrap_https.sh
File metadata and controls
executable file
·70 lines (54 loc) · 1.18 KB
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
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Usage:"
echo "Option:"
echo " 1: Gitea"
echo " 2: Minio"
echo " 3: Elasticsearch"
echo " 4: Kibana"
echo " 5: Registry"
echo " 6: Elasticsearch + Kibana"
exit
fi
gitea() {
echo "##### Installing Gitea"
docker-compose -f docker-compose-https.yaml up -d reverse-proxy gitea
}
minio() {
echo "##### Installing Minio"
docker-compose -f docker-compose-https.yaml up -d reverse-proxy minio
}
elasticsearch() {
echo "##### Installing Elasticsearch"
sysctl -w vm.max_map_count=262144
docker-compose -f docker-compose-https.yaml up -d reverse-proxy elasticsearch
}
kibana() {
echo "##### Installing Kibana"
docker-compose -f docker-compose-https.yaml up -d reverse-proxy kibana
}
registry() {
echo "##### Installing Registry"
docker-compose -f docker-compose-https.yaml up -d reverse-proxy registry
}
ek() {
echo "##### Installing Elasticsearch + Kibana"
sysctl -w vm.max_map_count=262144
docker-compose -f docker-compose-https.yaml up -d reverse-proxy elasticsearch kibana
}
case "$1" in
1) gitea
;;
2) minio
;;
3) elasticsearch
;;
4) kibana
;;
5) registry
;;
6) ek
;;
*) echo "Invalid option"
;;
esac