forked from faucetsdn/faucet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
76 lines (72 loc) · 2.16 KB
/
docker-compose.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: 'influxdb:2.0'
ports:
- '8086'
- '8083'
volumes:
- '${FAUCET_PREFIX}/opt/influxdb/shared/data/db:/var/lib/influxdb'
environment:
INFLUXDB_DB: 'faucet'
INFLUXDB_HTTP_AUTH_ENABLED: 'true'
INFLUXDB_ADMIN_USER: 'faucet'
INFLUXDB_ADMIN_PASSWORD: 'faucet'
prometheus:
restart: always
image: 'prom/prometheus:v2.28.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:8.0.6'
user: 'root'
ports:
- '3000:3000'
volumes:
- '${FAUCET_PREFIX}/opt/grafana:/var/lib/grafana'
links:
- influxdb
- prometheus
gauge:
restart: always
build:
context: .
dockerfile: Dockerfile.gauge
image: 'faucet/gauge: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
image: 'faucet/faucet: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}'
FAUCET_EVENT_SOCK_HEARTBEAT: '${FAUCET_EVENT_SOCK_HEARTBEAT}'