-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcompose.yaml
More file actions
59 lines (57 loc) · 1.45 KB
/
compose.yaml
File metadata and controls
59 lines (57 loc) · 1.45 KB
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
services:
katana:
build:
context: .
dockerfile: Dockerfile
target: katana
command: >
/bin/sh -c '
RUST_LOG=info katana --dev --dev.no-fee --http.addr 0.0.0.0 --http.cors_origins "*" --cartridge.paymaster --explorer
'
ports:
- 5050:5050
- 3001:3001
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:5050"]
interval: 10s
timeout: 5s
retries: 5
sozo-migrate:
build:
context: .
dockerfile: Dockerfile
target: dojo
volumes:
- ./:/app
depends_on:
katana:
condition: service_healthy
command:
[
"/bin/sh",
"-c",
"cd /app && /root/.dojo/bin/sozo migrate --rpc-url http://katana:5050",
]
restart: on-failure
torii:
build:
context: .
dockerfile: Dockerfile
target: torii
command: >
/bin/sh -c '
world_address=$$(cat /app/manifest_dev.json | jq -r .world.address) &&
RUST_LOG=libp2p=DEBUG torii -w $$world_address --http.cors_origins "*" --rpc http://katana:5050 --http.addr 0.0.0.0 --config /app/torii_dev.toml
'
volumes:
- ./manifest_dev.json:/app/manifest_dev.json
- ./torii_dev.toml:/app/torii_dev.toml
ports:
- 8080:8080
- 9090-9092:9090-9092
depends_on:
sozo-migrate:
condition: service_completed_successfully
katana:
condition: service_healthy
restart: on-failure