-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
108 lines (98 loc) · 2.69 KB
/
docker-compose.yaml
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
version: '3'
networks:
grafana:
services:
grafana:
image: grafana/grafana:9.2.1
container_name: grafana
ports:
- 3000:3000
networks:
- grafana
volumes:
- ./grafana/data:/var/lib/grafana
- ./conf/grafana.ini:/etc/grafana/grafana.ini
environment:
- GF_PATHS_CONFIG=/etc/grafana/grafana.ini
user: "$UserID"
loki:
image: grafana/loki:2.8.2
container_name: loki
volumes:
- ./conf/loki/loki.yaml:/etc/loki/loki.yaml
- ./conf/loki/rules/fake/rules.yml:/rules/fake/rules.yml
entrypoint:
- /usr/bin/loki
- -config.file=/etc/loki/loki.yaml
- -log.level=debug
ports:
- "3100:3100"
networks:
- grafana
prometheus:
image: prom/prometheus
container_name: prometheus
ports:
- 9090:9090
networks:
- grafana
volumes:
- ./conf/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./conf/prometheus/rules:/etc/prometheus/rules
entrypoint:
- /bin/prometheus
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --web.console.libraries=/usr/share/prometheus/console_libraries
- --web.console.templates=/usr/share/prometheus/consoles
- --web.enable-remote-write-receiver
#- --enable-feature=remote-write-receiver
alertmanager:
image: prom/alertmanager
container_name: alertmanager
command:
- '--config.file=/etc/alertmanager/config.yml'
- '--storage.path=/alertmanager'
- '--log.level=debug'
volumes:
- ./conf/alertmanager.yml:/etc/alertmanager/config.yml
ports:
- 9093:9093
- 25:25
networks:
- grafana
hana:
build: .
image: hana:latest
container_name: hana01
hostname: hana01
privileged: true
ports:
- 9115:9115
- 9100:9100
- 9680:9680
networks:
- grafana
volumes:
- ./hana/DATA_UNITS/HDB_SERVER_LINUX_X86_64:/src
- ./hana/sap_host_exporter:/tmp/sap_host_exporter
- ./conf/promtail.yml:/etc/promtail.yml
- ./conf/blackbox.yml:/etc/blackbox.yml
- /var/run/docker.sock:/var/run/docker.sock
- /var/log/:/logs
deploy:
resources:
limits:
cpus: '2.5'
memory: 14336M
command:
- /bin/bash
- -c
- |
promtail-linux-amd64 -config.file=/etc/promtail.yml &
node_exporter &
blackbox_exporter --config.file=/etc/blackbox.yml &
$HANA &
sleep infinity
# $HANA is:
# cd /src && cat templateFile.xml | ./hdblcm --action=install --ignore=check_min_mem -b --configfile=templateFile --read_password_from_stdin=xml