forked from ithacaxyz/porto
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
72 lines (67 loc) · 2.16 KB
/
compose.yaml
File metadata and controls
72 lines (67 loc) · 2.16 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
60
61
62
63
64
65
66
67
68
69
70
71
72
name: porto
services:
state:
build:
context: "${DOCKER_BUILD_CONTEXT:-https://github.com/ithacaxyz/porto.git}"
dockerfile: ./docker/state/Dockerfile
environment:
FOUNDRY_DISABLE_NIGHTLY_WARNING: "true"
user: root
volumes:
- state:/app/shared
command: ["sh", "-c", "bash ./run.sh"]
anvil:
depends_on:
state:
condition: service_completed_successfully
image: ghcr.io/foundry-rs/foundry:latest
entrypoint: ["anvil"]
command: --hardfork osaka --host 0.0.0.0 --port 8545 --accounts 20 --load-state /app/anvil.json
labels:
- dev.orbstack.domains=anvil.local
ports:
- "8545:8545"
volumes:
- state:/app
healthcheck:
test: ["CMD", "cast", "block-number", "--rpc-url", "http://localhost:8545"]
interval: 2s
retries: 5
relay:
depends_on:
anvil:
condition: service_healthy
build:
context: "${DOCKER_BUILD_CONTEXT:-https://github.com/ithacaxyz/porto.git}"
dockerfile_inline: |
FROM ghcr.io/ithacaxyz/relay:v26.1.3
COPY --from=ghcr.io/foundry-rs/foundry:latest /usr/local/bin/cast /usr/local/bin/cast
platform: linux/x86_64
labels:
- dev.orbstack.domains=relay.local
ports:
- "9119:9119"
volumes:
- state:/app
environment:
RELAY_MNEMONIC: "test test test test test test test test test test test junk"
RELAY_FUNDER_SIGNER_KEY: "0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6"
command: --config-only --funder-signing-key 0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6 --funder-owner-key 0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6
healthcheck:
test: ["CMD", "cast", "rpc", "--rpc-url", "http://localhost:9119", "health"]
interval: 2s
retries: 5
proxy:
build:
context: "${DOCKER_BUILD_CONTEXT:-https://github.com/ithacaxyz/porto.git}"
dockerfile: ./docker/proxy/Dockerfile
labels:
- dev.orbstack.domains=rpc.local
environment:
ANVIL_URL: http://anvil:8545
RELAY_URL: http://relay:9119
PORT: 9200
ports:
- "9200:9200"
volumes:
state: