-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
68 lines (61 loc) · 1.67 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
65
66
67
68
version: "3.3"
volumes:
grafana-storage:
prom-storage:
dht-storage:
services:
prometheus:
image: prom/prometheus:latest
restart: always
volumes:
- prom-storage:/prometheus
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=5y'
ports:
- 9090:9090
extra_hosts:
- "host.docker.internal:host-gateway"
grafana:
image: grafana/grafana:latest
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: memorablepassword
GF_INSTALL_PLUGINS: marcusolsson-csv-datasource
volumes:
- grafana-storage:/var/lib/grafana
- ./grafana.ini:/etc/grafana/grafana.ini
- ./grafana-datasource.yml:/etc/grafana/provisioning/datasources/datasource.yaml
depends_on:
- prometheus
ports:
- 3000:3000
dht:
image: lbry/dht-bootstrap:latest
command: --metrics_port 7777
restart: unless-stopped
network_mode: "host"
#ports:
# - 4444:4444/udp
dht-crawler:
image: lbry/dht-bootstrap:crawler_with_hostingv2 # metrics at port 8080
entrypoint: python3
command: scripts/dht_crawler.py /database/data.db
container_name: dht_node_crawler
restart: unless-stopped
network_mode: "host"
volumes:
- dht-storage:/database/
# node-exporter:
# image: prom/node-exporter:latest
# container_name: monitoring_node_exporter
# restart: unless-stopped
# volumes:
# - "/:/host:ro,rslave"
# command:
# - "--path.rootfs=/host"
# pid: host
# #network_mode: host
# expose: [9100]