-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose-signer-verified-p2p.yaml
187 lines (180 loc) · 6.63 KB
/
docker-compose-signer-verified-p2p.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
# Verified Mithril Signer node running on top of its own Cardano node
version: "3.9"
services:
cardano-node-signer-relay:
image: cardano-node/${CARDANO_IMAGE_ID}-modified
container_name: cardano-node-relay-signer-${SIGNER_ID}
restart: always
build:
context: .
dockerfile: Dockerfile.cardano
args:
CARDANO_IMAGE_ID: ${CARDANO_IMAGE_ID}
CARDANO_IMAGE_REGISTRY: ${CARDANO_IMAGE_REGISTRY}
user: ${CURRENT_UID}
profiles:
- cardano
- all
logging:
driver: "${LOGGING_DRIVER}"
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
volumes:
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/config/relay/${NETWORK}:/config
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/db/relay:/db
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/ipc:/ipc
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/pool:/pool
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/www:/www
ports:
- "${SIGNER_CARDANO_RELAY_PORT}:${SIGNER_CARDANO_RELAY_PORT}"
environment:
- CARDANO_SOCKET_PATH=/ipc/node.socket
- CARDANO_NODE_SOCKET_PATH=/ipc/node.socket
command:
[
"run",
"--config",
"/config/cardano-node/config.json",
"--topology",
"/pool/topology-relay.json",
"--database-path",
"/db",
"--port",
"${SIGNER_CARDANO_RELAY_PORT}"
]
cardano-node-signer-block-producer:
image: cardano-node/${CARDANO_IMAGE_ID}-modified
container_name: cardano-node-block-producer-signer-${SIGNER_ID}
restart: always
build:
context: .
dockerfile: Dockerfile.cardano
args:
CARDANO_IMAGE_ID: ${CARDANO_IMAGE_ID}
user: ${CURRENT_UID}
profiles:
- cardano
- all
logging:
driver: "${LOGGING_DRIVER}"
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
volumes:
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/config/block-producer/${NETWORK}:/config
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/db/block-producer:/db
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/ipc:/ipc
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/pool:/pool
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/www:/www
ports:
- "${SIGNER_CARDANO_BLOCK_PRODUCER_PORT}:${SIGNER_CARDANO_BLOCK_PRODUCER_PORT}"
environment:
- CARDANO_SOCKET_PATH=/ipc/node.socket
- CARDANO_NODE_SOCKET_PATH=/ipc/node.socket
command:
[
"run",
"--config",
"/config/cardano-node/config.json",
"--topology",
"/pool/topology-block-producer.json",
"--database-path",
"/db",
"--port",
"${SIGNER_CARDANO_BLOCK_PRODUCER_PORT}",
"--shelley-kes-key",
"/pool/kes.skey",
"--shelley-vrf-key",
"/pool/vrf.skey",
"--shelley-operational-certificate",
"/pool/opcert.cert"
]
mithril-signer:
image: ghcr.io/input-output-hk/mithril-signer:${MITHRIL_IMAGE_ID}
container_name: mithril-signer-${SIGNER_ID}
restart: always
user: ${CURRENT_UID}
profiles:
- mithril
- all
environment:
- RUST_BACKTRACE=1
- AGGREGATOR_ENDPOINT=http://mithril-signer-relay-${SIGNER_ID}:${SIGNER_RELAY_SERVER_PORT}
- NETWORK=${NETWORK}
- KES_SECRET_KEY_PATH=/mithril-signer-${SIGNER_ID}/cardano/pool/kes.skey
- OPERATIONAL_CERTIFICATE_PATH=/mithril-signer-${SIGNER_ID}/cardano/pool/opcert.cert
- RUN_INTERVAL=120000
- DB_DIRECTORY=/mithril-signer-${SIGNER_ID}/cardano/db
- DATA_STORES_DIRECTORY=/mithril-signer-${SIGNER_ID}/mithril/stores
- STORE_RETENTION_LIMIT=5
- CARDANO_NODE_SOCKET_PATH=/ipc/node.socket
- CARDANO_CLI_PATH=/app/bin/cardano-cli
- ERA_READER_ADAPTER_TYPE=${ERA_READER_ADAPTER_TYPE}
- ERA_READER_ADAPTER_PARAMS=${ERA_READER_ADAPTER_PARAMS}
- ENABLE_METRICS_SERVER=${ENABLE_METRICS_SERVER}
- METRICS_SERVER_IP=${METRICS_SERVER_IP}
- METRICS_SERVER_PORT=${METRICS_SERVER_PORT}
volumes:
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/mithril:/mithril-signer-${SIGNER_ID}/mithril
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/db/block-producer:/mithril-signer-${SIGNER_ID}/cardano/db
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/pool:/mithril-signer-${SIGNER_ID}/cardano/pool
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/ipc:/ipc
- ./cardano-configurations/network/${NETWORK}:/config
depends_on:
cardano-node-signer-block-producer:
condition: service_started
cardano-node-signer-relay:
condition: service_started
logging:
driver: "${LOGGING_DRIVER}"
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
mithril-signer-relay:
image: ghcr.io/input-output-hk/mithril-relay:${MITHRIL_IMAGE_ID}
container_name: mithril-signer-relay-${SIGNER_ID}
restart: always
user: ${CURRENT_UID}
profiles:
- mithril
- all
environment:
- RUST_BACKTRACE=1
- LISTEN_PORT=${SIGNER_RELAY_LISTEN_PORT}
- SERVER_PORT=${SIGNER_RELAY_SERVER_PORT}
- AGGREGATOR_ENDPOINT=http://${AGGREGATOR_CREDENTIALS}mithril-aggregator:8080/aggregator
- DIAL_TO=/dns4/mithril-aggregator-relay/tcp/${AGGREGATOR_RELAY_LISTEN_PORT}
- SIGNER_REPEATER_DELAY=${SIGNER_RELAY_REGISTRATION_REPEATER_DELAY}
ports:
- "${SIGNER_RELAY_LISTEN_PORT}:${SIGNER_RELAY_LISTEN_PORT}"
- "${SIGNER_RELAY_SERVER_PORT}:${SIGNER_RELAY_SERVER_PORT}"
command: [ "-vvv", "signer" ]
depends_on:
mithril-signer:
condition: service_started
logging:
driver: "${LOGGING_DRIVER}"
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
mithril-signer-www:
image: nginx:latest
container_name: mithril-signer-www-${SIGNER_ID}
restart: always
profiles:
- mithril
- all
volumes:
- ../data/${NETWORK}/mithril-signer-${SIGNER_ID}/cardano/www:/usr/share/nginx/html
ports:
- "${SIGNER_WWW_PORT}:8080"
logging:
driver: "${LOGGING_DRIVER}"
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.mithril-signer-${SIGNER_ID}.rule=Host(`${SIGNER_HOST}`)'
- 'traefik.http.routers.mithril-signer-${SIGNER_ID}.tls=true'
- 'traefik.http.routers.mithril-signer-${SIGNER_ID}.tls.certresolver=lets-encrypt'
networks:
default:
name: mithril_network
external: true