generated from nestjs/typescript-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (71 loc) · 1.75 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
version: '3.5'
services :
db:
image: postgres:latest
ports:
- "5432:5432"
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
POSTGRES_DB: vote_system
admin:
image: adminer
restart: always
depends_on:
- db
ports:
- 8080:8080
cardano-node:
image: inputoutput/cardano-node:1.26.2
environment:
NETWORK:
volumes:
- node-${NETWORK}-db:/data
- node-ipc:/ipc
- node-config:/nix/store
restart: on-failure
logging:
driver: "json-file"
options:
compress: "true"
max-file: "10"
max-size: "50m"
cardano-wallet:
image: inputoutput/cardano-wallet:2021.4.28
volumes:
- wallet-${NETWORK}-db:/wallet-db
- node-ipc:/ipc
- node-config:/config
ports:
- 8090:8090
entrypoint: [ ]
command: bash -c "
([[ $$NETWORK == \"mainnet\" ]] && $$CMD --mainnet) ||
([[ $$NETWORK == \"mainnet_candidate*\" ]] && $$CMD --staging /config/*-$$NETWORK-byron-genesis.json) ||
($$CMD --testnet /config/*-$$NETWORK-byron-genesis.json)
"
environment:
CMD: "cardano-wallet serve --node-socket /ipc/node.socket --database /wallet-db --listen-address 0.0.0.0"
NETWORK:
restart: on-failure
logging:
driver: "json-file"
options:
compress: "true"
max-file: "10"
max-size: "50m"
volumes:
node-mainnet-db:
node-testnet-db:
node-mainnet_candidate-db:
node-mainnet_candidate_2-db:
node-mainnet_candidate_3-db:
node-mainnet_candidate_4-db:
wallet-mainnet-db:
wallet-testnet-db:
wallet-mainnet_candidate-db:
wallet-mainnet_candidate_2-db:
wallet-mainnet_candidate_3-db:
wallet-mainnet_candidate_4-db:
node-ipc:
node-config: