-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharbitrum.yml
99 lines (96 loc) · 3.29 KB
/
arbitrum.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
x-logging: &logging
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
tag: '{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}'
services:
nitro:
restart: "unless-stopped"
build:
context: ./arbitrum
dockerfile: Dockerfile.binary
args:
- DOCKER_TAG=${NITRO_DOCKER_TAG}
image: nitro:local
pull_policy: never
user: user
stop_grace_period: 5m
environment:
- LOG_LEVEL=${LOG_LEVEL:-info}
- SNAPSHOT=${SNAPSHOT}
- EXTRAS=${EXTRAS}
volumes:
- nitro-data:/var/lib/nitro
- /etc/localtime:/etc/localtime:ro
<<: *logging
entrypoint:
- docker-entrypoint.sh
- nitro
- --validation.wasm.allowed-wasm-module-roots
- /home/user/nitro-legacy/machines,/home/user/target/machines
- --persistent.chain
- /var/lib/nitro
- --persistent.global-config
- /var/lib/nitro
- --parent-chain.connection.url
- ${PARENT_RPC}
- --parent-chain.blob-client.beacon-url
- ${PARENT_BEACON}
- --chain.name
- ${NETWORK}
- --node.staker.enable=false
- --http.addr
- 0.0.0.0
- --http.port
- ${RPC_PORT:-8547}
- --http.vhosts=*
- --http.corsdomain=*
- --http.rpcprefix=/
- --ws.addr
- 0.0.0.0
- --ws.port
- ${WS_PORT:-8548}
- --ws.origins=*
- --ws.rpcprefix=/
- --metrics
- --metrics-server.addr
- 0.0.0.0
- --file-logging.enable=false
- --log-level
- ${LOG_LEVEL}
labels:
- traefik.enable=true
- traefik.http.routers.${RPC_HOST:-arb}.service=${RPC_HOST:-arb}
- traefik.http.routers.${RPC_HOST:-arb}.entrypoints=websecure
- traefik.http.routers.${RPC_HOST:-arb}.rule=Host(`${RPC_HOST:-arb}.${DOMAIN}`)
- traefik.http.routers.${RPC_HOST:-arb}.tls.certresolver=letsencrypt
- traefik.http.routers.${RPC_HOST:-arb}lb.service=${RPC_HOST:-arb}
- traefik.http.routers.${RPC_HOST:-arb}lb.entrypoints=websecure
- traefik.http.routers.${RPC_HOST:-arb}lb.rule=Host(`${RPC_LB:-arb-lb}.${DOMAIN}`)
- traefik.http.routers.${RPC_HOST:-arb}lb.tls.certresolver=letsencrypt
- traefik.http.services.${RPC_HOST:-arb}.loadbalancer.server.port=${RPC_PORT:-8547}
- traefik.http.routers.${WS_HOST:-arbws}.service=${WS_HOST:-arbws}
- traefik.http.routers.${WS_HOST:-arbws}.entrypoints=websecure
- traefik.http.routers.${WS_HOST:-arbws}.rule=Host(`${WS_HOST:-arbws}.${DOMAIN}`)
- traefik.http.routers.${WS_HOST:-arbws}.tls.certresolver=letsencrypt
- traefik.http.routers.${WS_HOST:-arbws}lb.service=${WS_HOST:-arbws}
- traefik.http.routers.${WS_HOST:-arbws}lb.entrypoints=websecure
- traefik.http.routers.${WS_HOST:-arbws}lb.rule=Host(`${WS_LB:-arbws-lb}.${DOMAIN}`)
- traefik.http.routers.${WS_HOST:-arbws}lb.tls.certresolver=letsencrypt
- traefik.http.services.${WS_HOST:-arbws}.loadbalancer.server.port=${WS_PORT:-8548}
- metrics.scrape=true
- metrics.path=/debug/metrics/prometheus
- metrics.port=6070
- metrics.network=${NETWORK}
set-prune-marker:
profiles: ["tools"]
image: alpine:3
restart: "no"
volumes:
- nitro-data:/var/lib/nitro
entrypoint: ["/bin/sh","-c"]
command: /bin/sh
volumes:
nitro-data: