-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
111 lines (104 loc) · 3.08 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
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
services:
ethereum:
platform: linux/x86_64
image: ghcr.io/foundry-rs/foundry
entrypoint: anvil
healthcheck:
test: cast chain-id
interval: 5s
ports:
- "8545:8545"
environment:
ANVIL_IP_ADDR: "0.0.0.0"
networks:
- ethereum
ethereum-deployer:
image: ghcr.io/the-candy-shop/starksheet-monorepo/starksheet-solidity:latest
depends_on:
ethereum:
condition: service_healthy
environment:
RPC_URL: http://ethereum:8545
PRIVATE_KEY: "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
volumes:
- ethereum-broadcast:/app/starksheet/packages/starksheet-solidity/broadcast
- ethereum-out:/app/starksheet/packages/starksheet-solidity/out
networks:
- ethereum
ethereum-webapp:
image: ghcr.io/the-candy-shop/starksheet-monorepo/starksheet-webapp:latest
depends_on:
ethereum-deployer:
condition: service_completed_successfully
working_dir: /app/starksheet/packages/starksheet-webapp
volumes:
- ethereum-broadcast:/app/starksheet/packages/starksheet-solidity/broadcast
- ethereum-out:/app/starksheet/packages/starksheet-solidity/out
environment:
- REACT_APP_NETWORK=anvil
- REACT_APP_RPC_URL=http://0.0.0.0:8545
- PORT=3000
ports:
- "3000:3000"
networks:
- ethereum
starknet:
image: ghcr.io/dojoengine/dojo:v0.1.0
command:
- "katana"
- "--allow-zero-max-fee"
- "--validate-max-steps"
- "16777216"
- "--invoke-max-steps"
- "16777216"
- "--gas-price"
- "0"
healthcheck:
# This is a hack to just wait 1s
test: echo "ok"
interval: 1s
ports:
- "5050:5050"
networks:
- starknet
starknet-deployer:
image: ghcr.io/the-candy-shop/starksheet-monorepo/starksheet-cairo:latest
depends_on:
starknet:
condition: service_healthy
environment:
ACCOUNT_ADDRESS: "0x03ee9e18edc71a6df30ac3aca2e0b02a198fbce19b7480a63a0d71cbd76652e0"
PRIVATE_KEY: "0x0300001800000000300000180000000000030000000000003006001800006600"
RPC_URL: http://starknet:5050
CHECK_INTERVAL: "0.1"
MAX_WAIT: "1"
volumes:
- starknet-deployments:/app/starksheet/packages/starksheet-cairo/deployments
- starknet-build:/app/starksheet/packages/starksheet-cairo/build
networks:
- starknet
starknet-webapp:
image: ghcr.io/the-candy-shop/starksheet-monorepo/starksheet-webapp:latest
depends_on:
starknet-deployer:
condition: service_completed_successfully
working_dir: /app/starksheet/packages/starksheet-webapp
volumes:
- starknet-deployments:/app/starksheet/packages/starksheet-cairo/deployments/katana
- starknet-build:/app/starksheet/packages/starksheet-cairo/build
environment:
- REACT_APP_NETWORK=katana
- REACT_APP_RPC_URL=http://0.0.0.0:5050
- PORT=3001
ports:
- "3001:3001"
networks:
- starknet
volumes:
starknet-deployments:
starknet-build:
ethereum-broadcast:
ethereum-out:
networks:
starknet:
ethereum: