Skip to content

Commit a9d11d4

Browse files
authored
Improve docker compose p2p network setup (#2331)
1 parent ead924c commit a9d11d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docker-compose.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
version: '3.8'
2-
# first, run "docker build -t juno:latest"
1+
# run "docker-compose up --build -d"
32
services:
43
feeder-node:
54
image: juno:latest
5+
build: .
66
healthcheck:
77
test: ["CMD", "sleep", "4"]
88
interval: 4s
@@ -11,8 +11,8 @@ services:
1111
networks:
1212
p2p-network:
1313
ipv4_address: 192.168.10.10
14-
command: ["--http", "--p2p", "--p2p-bootnode", "--p2p-addr", "/ip4/0.0.0.0/tcp/7777", "--p2p-private-key",
15-
"5f6cdc3aebcc74af494df054876100368ef6126e3a33fa65b90c765b381ffc37a0a63bbeeefab0740f24a6a38dabb513b9233254ad0020c721c23e69bc820089"]
14+
command: ["--http", "--p2p", "--p2p-feeder-node", "--p2p-addr", "/ip4/0.0.0.0/tcp/7777", "--p2p-private-key",
15+
"5f6cdc3aebcc74af494df054876100368ef6126e3a33fa65b90c765b381ffc37a0a63bbeeefab0740f24a6a38dabb513b9233254ad0020c721c23e69bc820089", "--disable-l1-verification", "--network", "sepolia"]
1616
ports:
1717
- "6060:6060"
1818

@@ -22,7 +22,7 @@ services:
2222
depends_on:
2323
feeder-node:
2424
condition: service_healthy
25-
command: ["--http", "--p2p", "--p2p-boot-peers", "/ip4/192.168.10.10/tcp/7777/p2p/12D3KooWLdURCjbp1D7hkXWk6ZVfcMDPtsNnPHuxoTcWXFtvrxGG"]
25+
command: ["--http", "--p2p", "--p2p-peers", "/ip4/192.168.10.10/tcp/7777/p2p/12D3KooWLdURCjbp1D7hkXWk6ZVfcMDPtsNnPHuxoTcWXFtvrxGG", "--disable-l1-verification", "--network", "sepolia"]
2626
deploy:
2727
replicas: 2
2828

0 commit comments

Comments
 (0)