-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
85 lines (83 loc) · 2.56 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
version: "2"
volumes:
prometheus-volume:
grafana-volume:
services:
lightwaverf:
build:
context: .
dockerfile: Dockerfile.arm32v7
# Listens for UDP broadcast traffic on port 9761 (LightwaveRF responses)
# Listens for HTTP (TCP) traffic on 9191 (prometheus exporter)
network_mode: host
restart: unless-stopped
prometheus:
image: prom/prometheus
#build:
# context: prometheus/
# dockerfile: Dockerfile.arm32v7
# Listens for HTTP (TCP) traffic on 9090 (prometheus UI)
ports:
- 9090
#network_mode: host
networks:
- traefik-public
- default
labels:
- traefik.docker.network=traefik-public
extra_hosts:
- host.docker.internal:host-gateway
security_opt:
- seccomp:unconfined
command:
- --config.file=/app/prometheus.yml
- --storage.tsdb.path=/app/data/
- --storage.tsdb.retention.time=10y
volumes:
- prometheus-volume:/app/data/
- ./prometheus/prometheus.yml:/app/prometheus.yml:ro
restart: unless-stopped
grafana:
image: grafana/grafana:8.5.14
depends_on:
- prometheus
# Listens for HTTP (TCP) traffic on 3000 (Grafana UI)
ports:
- 3000
networks:
- traefik-public
- default
labels:
- traefik.docker.network=traefik-public
environment:
GF_DEFAULT_FORCE_MIGRATION: 'true'
GF_AUTH_ANONYMOUS_ENABLED: 'true'
GF_PATHS_PROVISIONING: '/etc/grafana/provisioning'
#GF_RENDERING_CALLBACK_URL: 'http://grafana:3000/'
#GF_RENDERING_SERVER_URL: 'http://renderer:8081/render'
GF_SECURITY_ADMIN_PASSWORD: 'lightwave'
GF_SERVER_ROOT_URL: 'http://grafana-lightwaverf.teleport.local'
volumes:
- ./grafana/provisioning/:/etc/grafana/provisioning/:ro
- grafana-volume:/var/lib/grafana
dns:
- 1.0.0.1
- 8.8.4.4
- 1.1.1.1
- 8.8.8.8
restart: unless-stopped
# socat:
# image: alpine
# network_mode: host
# security_opt:
# - seccomp=unconfined
# command:
# - /bin/sh
# - -c
# - apk add socat && socat -d TCP-LISTEN:80,fork TCP-CONNECT:127.0.0.1:3000
# restart: unless-stopped
networks:
traefik-public:
external: true
# vim: set expandtab autoindent shiftwidth=2: