-
Notifications
You must be signed in to change notification settings - Fork 192
/
docker-compose.yaml
60 lines (56 loc) · 1.7 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
---
version: '2'
services:
prometheus:
restart: always
image: 'prom/prometheus:v3.0.0'
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:11.3.1'
user: 'root'
ports:
- '3000:3000'
volumes:
- '${FAUCET_PREFIX}/opt/grafana:/var/lib/grafana'
links:
- 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'
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}'