forked from charx0r/POKT_DOKT
-
Notifications
You must be signed in to change notification settings - Fork 7
/
bor.yml
30 lines (28 loc) · 1.73 KB
/
bor.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
version: '3.1'
services:
polygon-bor:
image: 0xpolygon/bor:1.5.0
sysctls:
net.ipv4.tcp_slow_start_after_idle: 0
net.ipv4.tcp_no_metrics_save: 1
volumes:
- "polygon-bor:/datadir"
expose:
- 8545
ports:
- "27374:27374"
- "27374:27374/udp"
command: server --datadir=/datadir --db.engine=pebble --state.scheme=path --bor.heimdall=https://polygon-heimdall-rest.publicnode.com --port=27374 --bind=0.0.0.0 --nat=extip:$IP --rpc.returndatalimit=10000000 --http --http.port=8545 --http.vhosts=* --ws --ws.port=8545 --ws.origins=* --ws.addr=0.0.0.0 --http.addr=0.0.0.0 --maxpeers=200 --ws.api=eth,net,web3,txpool,bor --http.api=admin,eth,net,web3,txpool,bor --maxpeers=200
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.polygon-bor-stripprefix.stripprefix.prefixes=/polygon"
- "traefik.http.services.polygon-bor.loadbalancer.server.port=8545"
- "traefik.http.routers.polygon-bor.entrypoints=websecure"
- "traefik.http.routers.polygon-bor.tls.certresolver=myresolver"
- "traefik.http.routers.polygon-bor.rule=Host(`$DOMAIN`) && PathPrefix(`/polygon`)"
- "traefik.http.routers.polygon-bor.middlewares=polygon-bor-stripprefix, ipwhitelist"
networks:
- chains
volumes:
polygon-bor: