dashboard/docker-compose.yml
2022-08-31 11:35:14 -03:00

69 lines
1.7 KiB
YAML

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]