@@ -65,6 +65,25 @@ services:
65
65
# depends_on:
66
66
# - api
67
67
# - parity1
68
+
69
+ explorer :
70
+ hostname : launchpad-explorer
71
+ image : appliedblockchain/launchpad-explorer:latest
72
+ build :
73
+ context : ./explorer
74
+ environment :
75
+ ETHEREUM_JSONRPC_ENDPOINT : http://parity1:8545/
76
+ networks :
77
+ - main
78
+ ports :
79
+ - 3000:3000
80
+ depends_on :
81
+ - parity1
82
+ deploy :
83
+ mode : global
84
+ restart_policy :
85
+ condition : on-failure
86
+
68
87
parity1 :
69
88
hostname : launchpad-parity1
70
89
build :
@@ -78,10 +97,8 @@ services:
78
97
- S3_BUCKET_NAME
79
98
environment :
80
99
- PARITY_ID=1
81
- depends_on :
82
- - discovery
83
100
networks :
84
- - main
101
+ - main
85
102
ports :
86
103
- 8180:8180
87
104
- 8545:8545
@@ -90,6 +107,13 @@ services:
90
107
image : appliedblockchain/launchpad-parity1:latest
91
108
volumes :
92
109
- parity1_data:/parity/data
110
+ deploy :
111
+ restart_policy :
112
+ condition : on-failure
113
+ placement :
114
+ constraints :
115
+ - node.labels.node_id == 1
116
+
93
117
parity2 :
94
118
hostname : launchpad-parity2
95
119
build :
@@ -100,13 +124,18 @@ services:
100
124
- NPM_TOKEN
101
125
environment :
102
126
- PARITY_ID=2
103
- depends_on :
104
- - discovery
105
127
networks :
106
128
- main
107
129
image : appliedblockchain/launchpad-parity2:latest
108
130
volumes :
109
131
- parity2_data:/parity/data
132
+ deploy :
133
+ restart_policy :
134
+ condition : on-failure
135
+ placement :
136
+ constraints :
137
+ - node.labels.node_id == 2
138
+
110
139
parity3 :
111
140
hostname : launchpad-parity3
112
141
build :
@@ -117,43 +146,42 @@ services:
117
146
- NPM_TOKEN
118
147
environment :
119
148
- PARITY_ID=3
120
- depends_on :
121
- - discovery
122
149
networks :
123
150
- main
124
151
image : appliedblockchain/launchpad-parity3:latest
125
152
volumes :
126
153
- parity3_data:/parity/data
154
+ deploy :
155
+ restart_policy :
156
+ condition : on-failure
157
+ placement :
158
+ constraints :
159
+ - node.labels.node_id == 2
160
+
127
161
discovery :
128
162
hostname : discovery
129
163
image : redis
130
164
ports :
131
165
- 6379:6379
132
166
networks :
133
- - main
167
+ - main
134
168
volumes :
135
169
- discovery:/data
136
- deploy :
137
- update_config :
138
- parallelism : 1
139
- delay : 1s
140
- restart_policy :
141
- condition : on-failure
142
170
143
- logspout :
144
- image : gliderlabs/logspout
145
- deploy :
146
- mode : global
147
- environment :
148
- - SYSLOG_HOST=logs7 .papertrailapp.com:32046
149
- # NOTE: change the papertrail url/port before deploying your project
150
- command : syslog+tls://$$SYSLOG_HOST
151
- networks :
152
- - main
153
- volumes :
154
- - type : bind
155
- target : /var/run/docker.sock
156
- source : /var/run/docker.sock
171
+ # logspout:
172
+ # image: gliderlabs/logspout
173
+ # deploy:
174
+ # mode: global
175
+ # environment:
176
+ # - SYSLOG_HOST=logs .papertrailapp.com:12345
177
+ # # NOTE: you have to change the papertrail url with the correct one
178
+ # command: syslog+tls://$$SYSLOG_HOST
179
+ # networks:
180
+ # - main
181
+ # volumes:
182
+ # - type: bind
183
+ # target: /var/run/docker.sock
184
+ # source: /var/run/docker.sock
157
185
158
186
volumes :
159
187
discovery :
0 commit comments