-
Notifications
You must be signed in to change notification settings - Fork 101
/
docker-compose.yaml
189 lines (171 loc) · 4.12 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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
version: "3.5"
x-base: &default-base
build:
context: .
dockerfile: Dockerfile
image: ssvnode:latest
command: make BUILD_PATH=/go/bin/ssvnode start-node
# network_mode: host
networks:
- blox-docker
restart: always
environment:
CONFIG_PATH: ./config/config.yaml
x-base-dev: &default-dev
<<: *default-base
image: ssvnode-debug:latest
build:
context: .
dockerfile: dev.Dockerfile
command: air
environment:
RUN_CMD: start-node
security_opt:
- "seccomp:unconfined"
cap_add:
- SYS_PTRACE
volumes:
- ./:/go/src/github.com/ssvlabs/ssv
services:
ssv-node-1:
<<: *default-base
container_name: ssv-node-1
environment:
CONFIG_PATH: ./config/config.yaml
SHARE_CONFIG: ./config/share1.yaml
ports:
- 16001:16000
- 17001:15001
volumes:
- ./data/ssv-node-1/data:/data
ssv-node-2:
<<: *default-base
container_name: ssv-node-2
environment:
CONFIG_PATH: ./config/config.yaml
SHARE_CONFIG: ./config/share2.yaml
ports:
- 16002:16000
- 17002:15002
volumes:
- ./data/ssv-node-2/data:/data
ssv-node-3:
<<: *default-base
container_name: ssv-node-3
environment:
CONFIG_PATH: ./config/config.yaml
SHARE_CONFIG: ./config/share3.yaml
ports:
- 16003:16000
- 17003:15003
volumes:
- ./data/ssv-node-3/data:/data
ssv-node-4:
<<: *default-base
container_name: ssv-node-4
environment:
CONFIG_PATH: ./config/config.yaml
SHARE_CONFIG: ./config/share4.yaml
ports:
- 16004:16000
- 17004:15004
volumes:
- ./data/ssv-node-4/data:/data
exporter-node:
<<: *default-base
container_name: exporter-node
environment:
CONFIG_PATH: ./config/config.exporter.yaml
ports:
- 16005:16000
- 17005:15005
# dev services:
ssv-node-1-dev:
<<: *default-dev
container_name: ssv-node-1-dev
# ports:
# - "40005:40005"
environment:
RUN_CMD: start-node
BUILD_PATH: /bin/tmp/ssv
DEBUG_PORT: 40005
CONFIG_PATH: ./config/config.yaml
SHARE_CONFIG: ./config/share1.yaml
networks:
- blox-docker
ssv-node-2-dev:
<<: *default-dev
container_name: ssv-node-2-dev
# ports:
# - 40006:40006
environment:
RUN_CMD: start-node
BUILD_PATH: /bin/tmp/ssv
DEBUG_PORT: 40006
CONFIG_PATH: ./config/config.yaml
SHARE_CONFIG: ./config/share2.yaml
ssv-node-3-dev:
<<: *default-dev
container_name: ssv-node-3-dev
# ports:
# - 40007:40007
environment:
RUN_CMD: start-node
BUILD_PATH: /bin/tmp/ssv
DEBUG_PORT: 40007
CONFIG_PATH: ./config/config.yaml
SHARE_CONFIG: ./config/share3.yaml
ssv-node-4-dev:
<<: *default-dev
container_name: ssv-node-4-dev
# ports:
# - 40008:40008
environment:
RUN_CMD: start-node
BUILD_PATH: /bin/tmp/ssv
DEBUG_PORT: 40008
CONFIG_PATH: ./config/config.yaml
SHARE_CONFIG: ./config/share4.yaml
exporter-node-dev:
<<: *default-dev
container_name: exporter-node-dev
# ports:
# - 40009:40009
environment:
RUN_CMD: start-exporter
BUILD_PATH: /bin/tmp/ssv
DEBUG_PORT: 40009
CONFIG_PATH: ./config/config.exporter.yaml
# monitoring services
prometheus:
container_name: prometheus
image: prom/prometheus:v2.24.0
volumes:
- ./monitoring/prometheus/:/etc/prometheus/
- data_prometheus:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yaml"
- "--storage.tsdb.path=/prometheus"
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
- "--web.console.templates=/usr/share/prometheus/consoles"
ports:
- 9090:9090
restart: always
networks:
- blox-docker
grafana:
image: grafana/grafana:latest
container_name: grafana
networks:
- blox-docker
ports:
- "3000:3000"
volumes:
- data_grafana:/var/lib/grafana
networks:
blox-docker:
driver: bridge
name: blox-docker
volumes:
data_prometheus:
data_grafana: