-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-deploy.yml
96 lines (90 loc) · 2.32 KB
/
docker-compose-deploy.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
version: "3.9"
services:
hardhat:
image: juztamau5/rollups-hardhat:0.8.2
command:
[
"node",
"--network",
"hardhat",
"--export",
"/opt/cartesi/share/blockchain/localhost.json",
]
init: true
ports:
- "8545:8545"
healthcheck:
test:
["CMD", "test", "-f", "/opt/cartesi/share/blockchain/localhost.json"]
interval: 10s
timeout: 30s
retries: 15
volumes:
- ./deployments:/app/rollups/deployments
- ./export:/opt/cartesi/share/blockchain
server_manager:
restart: always
ports:
- "5001:5001"
healthcheck:
test: ["CMD", "grpc-health-probe", "-addr=:5001"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- machine:/opt/cartesi/share/dapp-bin
environment:
- SERVER_MANAGER_LOG_LEVEL=warning
- REMOTE_CARTESI_MACHINE_LOG_LEVEL=info
deployer:
image: juztamau5/rollups-cli:0.8.2
restart: on-failure
depends_on:
hardhat:
condition: service_healthy
server_manager:
condition: service_healthy
command:
[
"create",
"--rpc",
"http://hardhat:8545",
"--deploymentFile",
"/opt/cartesi/share/blockchain/localhost.json",
"--mnemonic",
"test test test test test test test test test test test junk",
"--templateHashFile",
"/opt/cartesi/share/dapp-bin/hash",
"--outputFile",
"/deployments/localhost/dapp.json",
]
volumes:
- machine:/opt/cartesi/share/dapp-bin:ro
- ./deployments:/deployments
- ./export:/opt/cartesi/share/blockchain
ultrachess_deployer:
image: juztamau5/ultrachess-deployer:1.0.0
restart: on-failure
depends_on:
hardhat:
condition: service_healthy
command:
[
"deploy",
"--network",
"docker",
"--export",
"/opt/cartesi/share/blockchain/localhost-ultrachess.json",
]
volumes:
- ./deployments:/app/rollups/deployments
- ./export:/opt/cartesi/share/blockchain
finished:
image: hello-world:latest # Close to scratch image
depends_on:
deployer:
condition: service_completed_successfully
ultrachess_deployer:
condition: service_completed_successfully
volumes:
machine: {}