forked from faucetsdn/faucet
-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose-pi.yaml
76 lines (72 loc) · 2.18 KB
/
docker-compose-pi.yaml
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
version: '2'
services:
influxdb:
restart: always
image: 'arm32v7/influxdb:1.6'
ports:
- '8086'
- '8083'
volumes:
- '${FAUCET_PREFIX}/opt/influxdb/shared/data/db:/var/lib/influxdb'
environment:
PRE_CREATE_DB: 'faucet'
ADMIN_USER: 'faucet'
INFLUXDB_INIT_PWD: 'faucet'
prometheus:
restart: always
build:
context: https://github.com/faucetsdn/docker-prometheus.git
dockerfile: Dockerfile.pi
image: 'faucet/prometheus-pi:2.13.1'
user: 'root'
ports:
- '9090:9090'
volumes:
- '${FAUCET_PREFIX}/opt/prometheus/:/prometheus'
- './etc/prometheus/prometheus-docker-compose.yml:/etc/prometheus/prometheus.yml'
- './etc/prometheus/faucet.rules.yml:/etc/prometheus/faucet.rules.yml'
links:
- faucet
- gauge
grafana:
restart: always
image: 'grafana/grafana-arm32v7-linux:6.4.4'
user: 'root'
ports:
- '3000:3000'
volumes:
- '${FAUCET_PREFIX}/opt/grafana:/var/lib/grafana'
links:
- influxdb
- prometheus
gauge:
restart: always
build:
context: .
dockerfile: Dockerfile.gauge.pi
image: 'faucet/gauge-pi:latest'
environment:
GAUGE_CONFIG: '/etc/faucet/gauge.yaml'
volumes:
- '${FAUCET_PREFIX}/var/log/faucet:/var/log/faucet'
- '${FAUCET_PREFIX}/etc/faucet:/etc/faucet'
ports:
- '6654:6653'
- '9303'
links:
- influxdb
faucet:
restart: always
build:
context: .
dockerfile: Dockerfile.faucet.pi
image: 'faucet/faucet-pi:latest'
volumes:
- '${FAUCET_PREFIX}/var/log/faucet:/var/log/faucet'
- '${FAUCET_PREFIX}/etc/faucet:/etc/faucet'
ports:
- '6653:6653'
- '9302'
environment:
FAUCET_CONFIG_STAT_RELOAD: '${FAUCET_CONFIG_STAT_RELOAD}'
FAUCET_EVENT_SOCK: '${FAUCET_EVENT_SOCK}'