Skip to content

Commit 939c6e4

Browse files
committed
Add docker-compose.yml
1 parent 5ecaf30 commit 939c6e4

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

docker-compose/docker-compose.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
services:
2+
geth:
3+
image: ghcr.io/ethscriptions-protocol/ethscriptions-geth:ethscriptions
4+
environment:
5+
JWT_SECRET: ${JWT_SECRET}
6+
GENESIS_FILE: ${GENESIS_FILE}
7+
GENESIS_TIMESTAMP: ${GENESIS_TIMESTAMP:-}
8+
GENESIS_MIX_HASH: ${GENESIS_MIX_HASH:-}
9+
RPC_GAS_CAP: ${RPC_GAS_CAP:-500000000}
10+
volumes:
11+
- geth-data:/root/ethereum
12+
ports:
13+
- "8545:8545"
14+
healthcheck:
15+
test: ["CMD-SHELL", "geth attach --exec 'eth.blockNumber' http://localhost:8545"]
16+
interval: 30s
17+
timeout: 3s
18+
retries: 20
19+
start_period: 10s
20+
21+
node:
22+
image: ghcr.io/ethscriptions-protocol/ethscriptions-node:evm-backend-demo
23+
environment:
24+
JWT_SECRET: ${JWT_SECRET}
25+
L1_NETWORK: ${L1_NETWORK}
26+
GETH_RPC_URL: http://geth:8551
27+
NON_AUTH_GETH_RPC_URL: http://geth:8545
28+
L1_RPC_URL: ${L1_RPC_URL}
29+
L1_GENESIS_BLOCK: ${L1_GENESIS_BLOCK}
30+
BLOCK_IMPORT_BATCH_SIZE: ${BLOCK_IMPORT_BATCH_SIZE:-5}
31+
depends_on:
32+
geth:
33+
condition: service_healthy
34+
35+
volumes:
36+
geth-data:

0 commit comments

Comments
 (0)