forked from meermanr/LightwaveRF
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (59 loc) · 1.94 KB
/
docker-compose.yml
File metadata and controls
60 lines (59 loc) · 1.94 KB
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
---
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
prometheus:
image: prom/prometheus
#build:
# context: prometheus/
# dockerfile: Dockerfile.arm32v7
# Listens for HTTP (TCP) traffic on 9090 (prometheus UI)
network_mode: host
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
grafana:
#image: grafana/grafana-arm32v7-linux:5.4.3
image: grafana/grafana
depends_on:
- prometheus
# Listens for HTTP (TCP) traffic on 3000 (Grafana UI)
network_mode: host
environment:
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_DOMAIN: '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
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
# vim: set expandtab autoindent shiftwidth=2: