forked from anthonychung14/iota-nelson-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
139 lines (129 loc) · 4.61 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
version: "2"
services:
iota:
image: iotaledger/iri:latest
container_name: iota_iri
hostname: iota
restart: unless-stopped
volumes:
- ./volumes/iota/iota.ini:/iri/iota.ini:ro
- ./volumes/iota/ixi:/iri/ixi:rw
- ./volumes/iota/mainnetdb:/iri/mainnetdb:rw
- /etc/localtime:/etc/localtime:ro
expose:
- "5556"
ports:
- "14600:14600/udp"
- "15600:15600/tcp"
- "14265:14265"
# Use the following for 8GB
command: ["/usr/bin/java", "-XX:+DisableAttachMechanism", "-Xmx8g", "-Xms256m", "-Dlogback.configurationFile=/iri/conf/logback.xml", "-Djava.net.preferIPv4Stack=true", "-jar", "iri.jar", "-c", "/iri.iota.ini"]
# Use the following for 4GB
# command: ["/usr/bin/java", "-XX:+DisableAttachMechanism", "-Xmx4g", "-Xms256m", "-Dlogback.configurationFile=/iri/conf/logback.xml", "-Djava.net.preferIPv4Stack=true", "-jar", "iri.jar", "-c", "/iri.iota.ini"]
# Use the following for 8GB rescan and revalidate
command: ["/usr/bin/java", "-XX:+DisableAttachMechanism", "-Xmx8g", "-Xms256m", "-Dlogback.configurationFile=/iri/conf/logback.xml", "-Djava.net.preferIPv4Stack=true", "-jar", "iri.jar", "-c", "/iri.iota.ini", "--revalidate", "--rescan"]
# Use the following for 4GB rescan and revalidate
# command: ["/usr/bin/java", "-XX:+DisableAttachMechanism", "-Xmx4g", "-Xms256m", "-Dlogback.configurationFile=/iri/conf/logback.xml", "-Djava.net.preferIPv4Stack=true", "-jar", "iri.jar", "-c", "/iri.iota.ini", "--revalidate", "--rescan"]
nelson.cli:
image: romansemko/nelson.cli:latest
container_name: iota_nelson.cli
hostname: nelson.cli
restart: unless-stopped
volumes:
- ./volumes/nelson/data:/data:rw
- ./volumes/nelson/config.ini:/home/node/config.ini:ro
- /etc/localtime:/etc/localtime:ro
command: "--config /home/node/config.ini"
ports:
- "18600:18600"
- "16600:16600"
nelson.mon:
build: https://github.com/SemkoDev/nelson.mon.git
container_name: iota_nelson.mon
hostname: nelson.mon
network_mode: "host"
restart: unless-stopped
ports:
- "3000:3000"
nelson.gui:
image: romansemko/nelson.gui:latest
container_name: iota_nelson.gui
hostname: nelson.gui
network_mode: "host"
restart: unless-stopped
ports:
- "5000:5000"
field.cli:
image: romansemko/field.cli:latest
container_name: iota_field.cli
hostname: field.cli
restart: unless-stopped
volumes:
- ./volumes/field/config.ini:/usr/src/field/config.ini:ro
- ./volumes/field/root:/root
- /etc/localtime:/etc/localtime:ro
command: "--config /usr/src/field/config.ini"
ports:
- "21310:21310"
prometheus:
image: prom/prometheus:latest
container_name: iota_prometheus
hostname: prometheus
restart: unless-stopped
volumes:
- ./volumes/prometheus/data:/data
- ./volumes/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- /etc/localtime:/etc/localtime:ro
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/data"
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
- "--web.console.templates=/usr/share/prometheus/consoles"
expose:
- "9090"
links:
- iota-prom-exporter:iota-prom-exporter
- node-exporter:node-exporter
iota-prom-exporter:
image: bambash/iota-prom-exporter:latest
container_name: iota_prom-iotaexp
hostname: iotape
restart: on-failure
expose:
- "9311"
volumes:
- /etc/localtime:/etc/localtime:ro
- ./volumes/ipe/config.js:/exporter/config.js
node-exporter:
image: prom/node-exporter:latest
container_name: iota_prom-nodeexp
hostname: node-exporter
restart: unless-stopped
logging:
driver: none
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
- /etc/localtime:/etc/localtime:ro
command:
- "--path.procfs=/host/proc"
- "--path.sysfs=/host/sys"
- --collector.filesystem.ignored-mount-points
- "^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs|/rootfs/sys/kernel/debug/tracing)($$|/)"
expose:
- "9100"
grafana:
image: grafana/grafana:latest
container_name: iota_grafana
restart: on-failure
ports:
- "8000:3000"
volumes:
- ./volumes/grafana:/var/lib/grafana
- /etc/localtime:/etc/localtime:ro
environment:
- GF_SERVER_PROTOCOL=http
- GF_PATHS_PROVISIONING=/var/lib/grafana/provisioning
links:
- prometheus:prometheus