-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
83 lines (80 loc) · 2.23 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Storj Monitor Docker YAML
# gsxryan github
# Fork from: https://github.com/nicolargo/docker-influxdb-grafana/blob/master/docker-compose.yml
# Fork from: https://github.com/matisku/tig-stack/blob/master/docker-compose-noplugins.yml
# This is in development and does not work fully yet.
# Grafana
# Visualizes Data
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
GF_SECURITY_SECRET_KEY: grafana
GF_USERS_ALLOW_SIGN_UP: "true"
GF_USERS_ALLOW_ORG_CREATE: "true"
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_NAME: grafana
GF_DASHBOARDS_JSON_ENABLED: "true"
GF_DASHBOARDS_JSON_PATH: /opt/grafana
GRAFANA_PLUGINS_ENABLED: "true"
links:
- influxdb
volumes:
# Data persistency
# sudo mkdir -p /srv/docker/grafana/data; chown 472:472 /srv/docker/grafana/data
# Source:Container
- /srv/docker/grafana/data:/var/lib/grafana
# InfluxDB
# Stores Data
influxdb:
image: influxdb:latest
container_name: influxdb
ports:
- "8083:8083"
- "8086:8086"
- "8090:8090"
environment:
INFLUX_DATABASE: "StorJ"
# INLFUX_ADMIN_USER: ""
# INFLUX_ADMIN_PASS: ""
volumes:
# Data persistency
# sudo mkdir -p /srv/docker/influxdb/data
# Source:container
- /srv/docker/influxdb/data:/var/lib/influxdb
# Telegraf
# Gathers data
telegraf:
image: telegraf:latest
container_name: telegraf
links:
- influxdb
# security_opt:
# - seccomp:unconfined
# - apparmor:unconfined
environment:
HOST_NAME: "telegraf"
INFLUXDB_HOST: "influxdb"
INFLUXDB_PORT: "8086"
DATABASE: "StorJ"
HOST_PROC: "/host/proc"
volumes:
# Source:container
#Import Scripts
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
- ./successrate.sh:/etc/telegraf/successrate.sh:ro
- ./folder_size.sh:/etc/telegraf/folder_size.sh:ro
- ./tokens.sh:/etc/telegraf/tokens.sh:ro
#Import Storj Shared Dir
- /mnt/iscsi/StorjV3:/mnt/storjshare:ro
#Import host docker
- /var/run/docker.sock:/var/run/docker.sock:ro
- /usr/bin/docker:/usr/bin/docker:ro
#Import Host proc
- /proc:/host/proc:ro
#/sys:/host/sys:ro
privileged: true