-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
185 lines (185 loc) · 5.5 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
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
version: "3.9"
services:
peer_master:
image: iotaledger/goshimmer:${GOSHIMMER_TAG:-develop}
stop_grace_period: 1m
command: >
--analysis.dashboard.bindAddress=0.0.0.0:9000
--analysis.dashboard.dev=false
--analysis.dashboard.mongodb.enabled=${MONGO_DB_ENABLED:-false}
--analysis.dashboard.mongodb.hostAddress=mongodb:27017
--analysis.server.bindAddress=0.0.0.0:1888
--autopeering.entryNodes=
--autopeering.seed=base58:8q491c3YWjbPwLmF2WD95YmCgh61j2kenCKHfGfByoWi
--config=/run/secrets/goshimmer.config.json
--database.directory=/tmp/mainnetdb
--mana.enableResearchVectors=false
--mana.snapshotResetTime=true
--messageLayer.snapshot.file=/run/secrets/goshimmer.message.snapshot.bin
--messageLayer.snapshot.genesisNode=
--metrics.global=true
--metrics.local=false
--metrics.manaResearch=false
--node.disablePlugins=clock
--node.enablePlugins=analysis-server,analysis-dashboard,prometheus,spammer,"webapi tools endpoint",activity,snapshot
--prometheus.bindAddress=0.0.0.0:9312
--prometheus.processMetrics=false
--statement.writeManaThreshold=1.0
--statement.writeStatement=true
--webapi.exportPath=/tmp/
secrets:
- goshimmer.config.json
- goshimmer.message.snapshot.bin
volumes:
- shimmerdb:/tmp/mainnetdb
ports:
- "8080:8080/tcp" # web API
- "9000:9000/tcp" # analysis dashboard
expose:
- "1888/tcp" # analysis server (within Docker network)
- 9312/tcp # prometheus
networks:
- shimmer
peer_replica:
image: iotaledger/goshimmer:${GOSHIMMER_TAG:-develop}
stop_grace_period: 1m
command: >
--config=/run/secrets/goshimmer.config.json
--database.directory=/tmp/mainnetdb
--node.enablePlugins=bootstrap,"webapi tools endpoint"
--messageLayer.snapshot.file=/run/secrets/goshimmer.message.snapshot.bin
--messageLayer.snapshot.genesisNode=
--node.disablePlugins=portcheck,clock
--mana.snapshotResetTime=true
--statement.writeStatement=true
--statement.writeManaThreshold=1.0
--webapi.exportPath=/tmp/
deploy:
replicas: ${SHIMMER_PEER_REPLICAS:-1}
secrets:
- goshimmer.config.json
- goshimmer.message.snapshot.bin
expose:
- "8080/tcp" # web API (within Docker network)
networks:
- shimmer
depends_on:
- peer_master
faucet:
image: iotaledger/goshimmer:${GOSHIMMER_TAG:-develop}
stop_grace_period: 1m
command: >
--config=/run/secrets/goshimmer.config.json
--database.directory=/tmp/mainnetdb
--autopeering.seed=base58:3YX6e7AL28hHihZewKdq6CMkEYVsTJBLgRiprUNiNq5E
--node.enablePlugins=bootstrap,"webapi tools endpoint",faucet,activity
--messageLayer.snapshot.file=/run/secrets/goshimmer.message.snapshot.bin
--messageLayer.startSynced=true
--faucet.seed=7R1itJx5hVuo9w9hjg5cwKFmek4HMSoBDgJZN8hKGxih
--messageLayer.snapshot.genesisNode=
--node.disablePlugins=portcheck,clock
--mana.snapshotResetTime=true
--statement.writeStatement=true
--statement.writeManaThreshold=1.0
--webapi.exportPath=/tmp/
secrets:
- goshimmer.config.json
- goshimmer.message.snapshot.bin
ports:
- "8081:8081/tcp" # dashboard
expose:
- "8080/tcp" # web API (within Docker network)
networks:
- shimmer
depends_on:
- peer_master
mongodb:
image: mongo:latest
profiles:
- grafana
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
ports:
- 27017:27017
networks:
- shimmer
volumes:
- mongodb_data_container:/data/db
prometheus:
image: prom/prometheus:latest
profiles:
- grafana
ports:
- 9090:9090
command:
- --config.file=/run/secrets/prometheus.yml
secrets:
- prometheus.yml
networks:
- shimmer
depends_on:
- peer_master
grafana:
image: grafana/grafana:latest
restart: unless-stopped
profiles:
- grafana
environment:
# path to provisioning definitions can only be defined as
# environment variables for grafana within docker
- GF_PATHS_PROVISIONING=/var/lib/grafana/provisioning
networks:
- shimmer
ports:
- 3000:3000
user: "104"
volumes:
- ./monitoring/grafana:/var/lib/grafana:rw
drand-leader:
image: angelocapossele/drand:v1.1.4
entrypoint: /data/client-script.sh
profiles:
- drng
ports:
- "8000:8000/tcp"
- "8800:8081/tcp"
networks:
- shimmer
environment:
LEADER: 1
GOSHIMMER: http://peer_master:8080
depends_on:
- peer_master
drand-client:
image: angelocapossele/drand:v1.1.4
entrypoint: /data/client-script.sh
profiles:
- drng
ports:
- "8000/tcp"
- "8081/tcp"
deploy:
replicas: ${DRNG_REPLICAS:-2}
external_links:
# Manually set the container name for the leader to what the container expects
- drand-leader:testdrng-drand_0
networks:
- shimmer
environment:
GOSHIMMER: http://peer_master:8080
depends_on:
- drand-leader
networks:
shimmer:
driver: bridge
volumes:
shimmerdb:
mongodb_data_container:
secrets:
goshimmer.message.snapshot.bin:
file: ${MESSAGE_SNAPSHOT_FILE:-./goshimmer/assets/7R1itJx5hVuo9w9hjg5cwKFmek4HMSoBDgJZN8hKGxih.bin}
goshimmer.config.json:
file: ./goshimmer/config.docker.json
prometheus.yml:
file: ./monitoring/prometheus.yml