-
Notifications
You must be signed in to change notification settings - Fork 214
/
docker-compose.yml
58 lines (55 loc) · 1.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
version: "3.5"
services:
cardano-node:
image: cardanofoundation/cardano-wallet:${WALLET_TAG}
environment:
NETWORK:
CARDANO_NODE_SOCKET_PATH: /ipc/${NODE_SOCKET_NAME}
volumes:
- ${NODE_DB}:/data
- ${NODE_SOCKET_DIR}:/ipc
- ./configs/cardano:/configs
restart: on-failure
user: ${USER_ID}
logging:
driver: "json-file"
options:
compress: "true"
max-file: "10"
max-size: "50m"
entrypoint: []
command: >
cardano-node run --topology /configs/${NETWORK}/topology.json
--database-path /data
--socket-path /ipc/node.socket
--config /configs/${NETWORK}/config.json
cardano-wallet:
image: cardanofoundation/cardano-wallet:${WALLET_TAG}
volumes:
- ${WALLET_DB}:/wallet-db
- ${NODE_SOCKET_DIR}:/ipc
- ./configs/cardano:/configs
ports:
- ${WALLET_PORT}:8090
entrypoint: []
command: bash -c "
([[ $$NETWORK == \"mainnet\" ]] && $$CMD --mainnet) ||
($$CMD --testnet /configs/${NETWORK}/byron-genesis.json)
"
environment:
CMD: "cardano-wallet serve --node-socket /ipc/${NODE_SOCKET_NAME} --database /wallet-db --listen-address 0.0.0.0"
NETWORK:
user: ${USER_ID}
restart: on-failure
logging:
driver: "json-file"
options:
compress: "true"
max-file: "10"
max-size: "50m"
icarus:
image: piotrstachyra/icarus:v2023-04-14
network_mode: "host"
restart: on-failure
volumes:
node-ipc: