forked from bnb-chain/opbnb-node-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (46 loc) · 1.01 KB
/
docker-compose.yml
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
---
version: "3.4"
x-logging: &logging
logging:
driver: json-file
options:
max-size: 10m
max-file: "3"
services:
op-geth:
image: ghcr.io/bnb-chain/op-geth:${OP_GETH_IMAGE_TAG}
platform: linux/amd64
restart: unless-stopped
stop_grace_period: 5m
entrypoint: /scripts/op-geth-start.sh
env_file:
- ./envs/${NETWORK_NAME}/op-geth.env
- .env
ports:
- ${PORT__OP_GETH:-8545}:8545
volumes:
- ./scripts/:/scripts
- ./jwt.txt:/jwt.txt
- op_geth:/geth
<<: *logging
op-node:
image: ghcr.io/bnb-chain/op-node:${OP_NODE_IMAGE_TAG}
platform: linux/amd64
depends_on:
- op-geth
restart: unless-stopped
stop_grace_period: 5m
entrypoint: /scripts/op-node-start.sh
env_file:
- .env
ports:
- ${PORT__OP_NODE_P2P:-9003}:9003
- ${PORT__OP_NODE:-8546}:8546
volumes:
- ./scripts/:/scripts
- ./jwt.txt:/jwt.txt
- op_node:/op_node
<<: *logging
volumes:
op_geth:
op_node: