forked from mosajjal/dnsmonster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.template
56 lines (55 loc) · 1.5 KB
/
docker-compose.yml.template
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
version: "1.0"
services:
dnsmonster:
image: jrventer/dnsmonster:latest
cap_add:
- NET_ADMIN
network_mode: host
depends_on:
- ch
environment:
- PUID=1000
- PGID=1000
command:
- "-serverName=hostname" # Change this to your servername
- "-devName=lo" # Change this to the interface you'd like to monitor
- "-clickhouseAddress=127.0.0.1:9000"
- "-clickhouseOutputType=1"
- "-clickhouseBatchSize=10000"
ch:
image: yandex/clickhouse-server:latest
ports:
- "8123:8123"
- "9000:9000"
- "9009:9009"
networks:
- monitoring
ulimits:
nofile:
soft: 262144
hard: 262144
volumes:
- ./clickhouse/tables.sql:/tmp/tables.sql
- ./clickhouse/dictionaries/:/opt/dictionaries/
- ./clickhouse/dns_dictionary.xml:/etc/clickhouse-server/dns_dictionary.xml
- ./clickhouse/config.xml:/etc/clickhouse-server/config.xml
- /opt/ch-data/logs/:/var/log/clickhouse-server/
- /opt/ch-data/data/:/var/lib/clickhouse/
healthcheck:
test: ["CMD", "wget", "-O-", "-q", "http://localhost:8123/?query=SELECT name FROM system.tables WHERE name = 'DNS_LOG'"]
interval: 1m
timeout: 10s
retries: 3
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
networks:
- monitoring
depends_on:
- ch
volumes:
- ./grafana/plugins:/var/lib/grafana/plugins/
- ./bin/curl:/sbin/curl
networks:
monitoring: