-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
65 lines (59 loc) · 1.81 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
version: '3.6'
networks:
monitoring_network:
driver: overlay
attachable: true
volumes:
mongodb_storage:
driver: local
services:
alertmonitor:
image: matjaz99/alertmonitor:latest
ports:
- 8080:8080
networks:
- monitoring_network
environment:
- TZ=${TZ}
- SIMPLELOGGER_FILENAME=/opt/alertmonitor/log/alertmonitor.log
- GRAFANA_HOSTNAME=my.grafana.domain
- ALERTMONITOR_DATA_RETENTION_DAYS=7
- ALERTMONITOR_PSYNC_INTERVAL_SEC=900
- ALERTMONITOR_PROMETHEUS_SERVER=http://localhost:9090
- ALERTMONITOR_PROMETHEUS_CLIENT_POOL_SIZE=1
- ALERTMONITOR_HTTP_CLIENT_CONNECT_TIMEOUT_SEC=10
- ALERTMONITOR_HTTP_CLIENT_READ_TIMEOUT_SEC=120
- ALERTMONITOR_DATE_FORMAT="yyyy/MM/dd H:mm:ss"
- ALERTMONITOR_KAFKA_ENABLED=false
- ALERTMONITOR_KAFKA_SERVER=promvm:9092
- ALERTMONITOR_KAFKA_TOPIC=alertmonitor_events
- ALERTMONITOR_PROMETHEUS_ID_LABELS="cluster, region, monitor"
- ALERTMONITOR_MONGODB_ENABLED=false
- ALERTMONITOR_MONGODB_CONNECTION_STRING="mongodb://admin:mongodbpassword@mongodb:27017/?authSource=admin"
- ALERTMONITOR_MONGODB_CONNECT_TIMEOUT_SEC="5"
- ALERTMONITOR_MONGODB_READ_TIMEOUT_SEC="30"
volumes:
- /var/log:/opt/alertmonitor/log
deploy:
mode: replicated
replicas: 1
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 15s
timeout: 5s
retries: 5
mongodb:
image: mongo:5.0.6
ports:
- 27017:27017
networks:
- monitoring_network
environment:
MONGO_INITDB_DATABASE: "alertmonitor"
MONGO_INITDB_ROOT_USERNAME: "admin"
MONGO_INITDB_ROOT_PASSWORD: "mongodbpassword"
volumes:
- mongodb_storage:/data/db
deploy:
mode: replicated
replicas: 1