Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Adds RPC port to Documentation and adds profiles to docker-compose #77

Merged
merged 2 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ p2p_port: 13522
# Port used for HTTP traffic. If not configured, 13523 is the default.
http_port: 13523

# Port used for RPC traffic. If not configured, 13524 is the default.
rpc_port: 13524

# Secret for the node. This is used to authorize the nodes. The value doesnt matter as long as it is sufficiently unique. It is signed using the private key.
secret: hello

Expand Down Expand Up @@ -92,9 +95,15 @@ To simplify the deployment process, you may utilize Docker to create an isolated
docker build -t mev-commit:latest .
```
- Running with Docker Compose:


If you want to just spin up the mev-commit p2p nodes, you may use:
```
docker-compose --profile p2pnode up --build
```

If you would also like to spin up the settlment layer:
```
docker-compose up --build
docker-compose --profile p2pnode --profile settlement up --build
```

- Stopping the Service:
Expand Down
19 changes: 19 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ services:
networks:
mev-net:
ipv4_address: 172.28.0.2
profiles:
- p2pnode

provider:
build:
Expand All @@ -27,6 +29,8 @@ services:
- provider-keys:/keys
networks:
- mev-net
profiles:
- p2pnode

user:
build:
Expand All @@ -43,6 +47,9 @@ services:
ports:
- "13523:13523"
- "13524:13524"
profiles:
- p2pnode


# Settlement layer section
coordinator:
Expand All @@ -58,6 +65,8 @@ services:
- shared-optimism:/shared-optimism
networks:
- op-net
profiles:
- settlement
l1-geth:
build:
context: ./op-docker/l1-geth
Expand All @@ -67,6 +76,8 @@ services:
- op-net
ports:
- "8544:8545"
profiles:
- settlement
op-geth:
build:
context: ./op-docker/op-geth
Expand All @@ -76,6 +87,8 @@ services:
- op-net
ports:
- "8545:8545"
profiles:
- settlement
op-node:
build:
context: ./op-docker/op-node
Expand All @@ -85,18 +98,24 @@ services:
- op-net
ports:
- "8546:8545"
profiles:
- settlement
op-batcher:
build:
context: ./op-docker/op-batcher
networks:
- op-net
profiles:
- settlement
op-proposer:
build:
context: ./op-docker/op-proposer
volumes:
- shared-optimism:/shared-optimism
networks:
- op-net
profiles:
- settlement

volumes:
bootnode-keys:
Expand Down