File tree 3 files changed +19
-0
lines changed
3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1
1
POSTGRES_PASSWORD=secret
2
+ SLACK_WEBHOOK_URL=https://hooks.slack.com/services/XXXX
Original file line number Diff line number Diff line change @@ -8,15 +8,20 @@ services:
8
8
container_name : netdata
9
9
cap_add :
10
10
- SYS_PTRACE
11
+ entrypoint : /netdata
11
12
volumes :
12
13
- /var/run/docker.sock:/var/run/docker.sock:ro
13
14
- /volume1/docker/netdata/config:/etc/netdata:rw
14
15
- /volume1/docker/netdata/log:/var/log/netdata:rw
16
+ - /volume1/homes/admin/Code/bds.home/scripts/netdata:/netdata
15
17
- /proc:/host/proc:ro
16
18
- /sys:/host/sys:ro
19
+ env_file :
20
+ - /volume1/homes/admin/Code/bds.home/.env
17
21
environment :
18
22
- NETDATA_IP=0.0.0.0
19
23
- NETDATA_PORT=19999
24
+ - SLACK_CHANNEL=general
20
25
ports :
21
26
- 0.0.0.0:19999:19999/tcp
22
27
network_mode : host
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -o errexit
4
+ set -o pipefail
5
+ set -o nounset
6
+
7
+ cat << EOF > /etc/netdata/health_alarm_notify.conf
8
+ SEND_SLACK="YES"
9
+ SLACK_WEBHOOK_URL="${SLACK_WEBHOOK_URL=' https://hooks.slack.com/services/XXXX' } "
10
+ DEFAULT_RECIPIENT_SLACK="${SLACK_CHANNEL:= ' general' } "
11
+ EOF
12
+
13
+ exec /run.sh
You can’t perform that action at this time.
0 commit comments