-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (68 loc) · 1.81 KB
/
docker-compose.yml
File metadata and controls
72 lines (68 loc) · 1.81 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
services:
config-init:
image: alpine:3.20
container_name: opstack-config-init
restart: "no"
volumes:
- reth-data:/reth-data
- node-data:/node-data
- ./scripts/download-config.sh:/entrypoint.sh:ro
env_file:
- .env
entrypoint: /bin/sh
command: /entrypoint.sh
networks:
- opstack-network
reth:
image: ${RETH_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-reth:v1.11.0}
container_name: opstack-reth
restart: unless-stopped
ports:
- "8545:8545" # Reth HTTP RPC
- "8546:8546" # Reth WebSocket RPC
- "8551:8551" # Reth Engine API / Auth RPC
- "6060:6060" # Reth metrics
- "30303:30303" # Reth P2P
volumes:
- reth-data:${RETH_DATADIR:-/data}
- ./jwt.txt:${RETH_DATADIR:-/data}/jwt.txt:ro
- ./scripts/reth-entrypoint.sh:/entrypoint.sh:ro
env_file:
- .env
entrypoint: /bin/sh
command: /entrypoint.sh
depends_on:
config-init:
condition: service_completed_successfully
networks:
- opstack-network
node:
image: ${NODE_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node:v1.16.7}
container_name: opstack-node
restart: unless-stopped
ports:
- "9003:9003" # Op-node P2P TCP
- "9003:9003/udp" # Op-node P2P UDP
- "7300:7300" # Op-node metrics
- "9545:9545" # Op-node RPC
volumes:
- node-data:/data
- ./jwt.txt:/data/jwt.txt:ro
- ./scripts/node-entrypoint.sh:/entrypoint.sh:ro
env_file:
- .env
entrypoint: /bin/sh
command: /entrypoint.sh
depends_on:
reth:
condition: service_started
networks:
- opstack-network
volumes:
reth-data:
driver: local
node-data:
driver: local
networks:
opstack-network:
driver: bridge