forked from celo-org/celo-l2-node-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
147 lines (138 loc) · 4.3 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: "3.4"
services:
historical-rpc-node:
image: us-docker.pkg.dev/celo-org/us.gcr.io/geth-all:1.8.7
restart: on-failure
stop_grace_period: 5m
entrypoint: /scripts/start-historical-rpc-node.sh
env_file:
- ./envs/common/historical-rpc-node.env
- .env
volumes:
- ${HISTORICAL_RPC_DATADIR_PATH:-geth}:/geth
- ./scripts/:/scripts/
ports:
- ${PORT__HISTORICAL_RPC_NODE_HTTP:-9991}:8545
- ${PORT__HISTORICAL_RPC_NODE_WS:-9992}:8546
healthcheck:
platform: linux/amd64
image: ethereumoptimism/replica-healthcheck:${IMAGE_TAG__HEALTHCHECK:-latest}
restart: unless-stopped
env_file:
- ./envs/common/healthcheck.env
- .env
ports:
- ${PORT__HEALTHCHECK_METRICS:-7300}:7300
eigenda-proxy:
platform: linux/amd64
image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/eigenda-proxy:v1.4.1
restart: unless-stopped
stop_grace_period: 5m
entrypoint: /scripts/start-eigenda-proxy.sh
volumes:
- eigenda-data:/data
- ./scripts/:/scripts
ports:
- ${PORT_EIGENDA_PROXY:-4242}:4242
extra_hosts:
- "host.docker.internal:host-gateway"
deploy:
# If USE_LOCAL_EIGENDA_PROXY_IF_UNSET is unset or empty, then we set replicas to 1,
# otherwise use the value of USE_LOCAL_EIGENDA_PROXY_IF_UNSET which should be 0.
replicas: ${USE_LOCAL_EIGENDA_PROXY_IF_UNSET:-1}
op-geth:
platform: linux/amd64
image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-geth:celo-v2.0.0-rc1
restart: unless-stopped
stop_grace_period: 5m
entrypoint: /scripts/start-op-geth.sh
env_file:
- ./envs/${NETWORK_NAME}/op-geth.env
- .env
volumes:
- ./envs/${NETWORK_NAME}/config:/chainconfig
- ./scripts/:/scripts
- shared:/shared
- ${DATADIR_PATH}:/geth
ports:
- ${PORT__OP_GETH_HTTP:-9993}:8545
- ${PORT__OP_GETH_WS:-9994}:8546
- ${PORT__OP_GETH_P2P:-39393}:${PORT__OP_GETH_P2P:-39393}/udp
- ${PORT__OP_GETH_P2P:-39393}:${PORT__OP_GETH_P2P:-39393}/tcp
extra_hosts:
- "host.docker.internal:host-gateway"
op-node:
platform: linux/amd64
image: us-west1-docker.pkg.dev/blockchaintestsglobaltestnet/dev-images/op-node:b41faa95a0eaa0550ddcf4742ca8abf7b940b901
restart: unless-stopped
stop_grace_period: 5m
entrypoint: /scripts/start-op-node.sh
env_file:
- ./envs/${NETWORK_NAME}/op-node.env
- .env
volumes:
- ./envs/${NETWORK_NAME}/config:/chainconfig
- ./scripts/:/scripts
- shared:/shared
ports:
- ${PORT__OP_NODE_P2P:-9003}:9003/udp
- ${PORT__OP_NODE_P2P:-9003}:9003/tcp
- ${PORT__OP_NODE_HTTP:-9545}:9545
extra_hosts:
- "host.docker.internal:host-gateway"
bedrock-init:
build:
context: ./docker/dockerfiles
dockerfile: Dockerfile.bedrock-init
entrypoint: /scripts/init-bedrock.sh
env_file:
- ./envs/${NETWORK_NAME}/op-geth.env
- .env
volumes:
- ./scripts/:/scripts
- shared:/shared
- ${DATADIR_PATH}:/geth
- geth:/legacy-geth
- torrent_downloads:/downloads
prometheus:
platform: linux/amd64
image: prom/prometheus:${IMAGE_TAG__PROMETHEUS:-latest}
restart: unless-stopped
env_file:
- .env
volumes:
- ./docker/prometheus:/etc/prometheus
- prometheus_data:/prometheus
ports:
- ${PORT__PROMETHEUS:-9090}:9090
grafana:
platform: linux/amd64
image: grafana/grafana:${IMAGE_TAG__GRAFANA:-9.3.0}
restart: unless-stopped
env_file:
- ./envs/common/grafana.env
volumes:
- ./docker/grafana/provisioning/:/etc/grafana/provisioning/:ro
- ./docker/grafana/dashboards/simple_node_dashboard.json:/var/lib/grafana/dashboards/simple_node_dashboard.json
- grafana_data:/var/lib/grafana
ports:
- ${PORT__GRAFANA:-3000}:3000
influxdb:
platform: linux/amd64
image: influxdb:${IMAGE_TAG__INFLUXDB:-1.8}
restart: unless-stopped
env_file:
- ./envs/common/influxdb.env
volumes:
- ./docker/influxdb/influx_init.iql:/docker-entrypoint-initdb.d/influx_init.iql
- influxdb_data:/var/lib/influxdb
ports:
- ${PORT__INFLUXDB:-8086}:8086
volumes:
geth:
eigenda-data:
prometheus_data:
grafana_data:
influxdb_data:
shared:
torrent_downloads: