forked from justmara/ns-exporter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
60 lines (56 loc) · 1.3 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
version: '3.9'
services:
grafana-ns:
image: grafana/grafana-oss:latest
container_name: grafana-ns
restart: always
depends_on:
- influx-ns
volumes:
- data-grafana-ns:/var/lib/grafana
networks:
- ns-network
ports:
- 3000:3000
influx-ns:
image: influxdb:latest
container_name: influx-ns
restart: always
volumes:
- data-influx-ns:/var/lib/influxdb2
networks:
- ns-network
ports:
- 8086:8086
# mongo-ns:
# image: mongo:latest
# container_name: mongo-ns
# volumes:
# - data-mongo-ns:/data/db
# networks:
# - ns-network
# ports:
# - 27017:27017
ns-exporter:
image: ns-exporter:latest
container_name: ns-exporter
restart: unless-stopped
environment:
- NS_EXPORTER_MONGO_URI=${NS_EXPORTER_MONGO_URI:-mongodb://mongo-ns:27017}
- NS_EXPORTER_MONGO_DB=${NS_EXPORTER_MONGO_DB:-ns}
- NS_EXPORTER_INFLUX_URI=${NS_EXPORTER_INFLUX_URI:-http://influx-ns:8086}
- NS_EXPORTER_INFLUX_TOKEN=${NS_EXPORTER_INFLUX_TOKEN?err}
- NS_EXPORTER_LIMIT=3
- NS_EXPORTER_SKIP=0
depends_on:
- influx-ns
# - mongo
networks:
- ns-network
networks:
ns-network:
driver: bridge
volumes:
data-grafana-ns:
data-influx-ns:
# data-mongo-ns: