Created
June 26, 2024 09:46
-
-
Save dreadedhamish/af54a01f239e20da04391793dd682916 to your computer and use it in GitHub Desktop.
struggling traefik install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2,2' | |
services: | |
erigon: | |
image: registry.gitlab.com/pulsechaincom/erigon-pulse | |
# image: docker.io/library/pulse-erigon-custom | |
# stdin_open: true # docker run -i | |
# tty: true # docker run -t | |
command: | | |
--chain=pulsechain | |
--datadir=/blockchain/execution | |
--db.pagesize=16K | |
--torrent.download.slots=50 --torrent.upload.rate=2mb --torrent.download.rate=200mb | |
--authrpc.jwtsecret=/blockchain/jwt.hex | |
--authrpc.addr=erigon | |
--authrpc.vhosts=* | |
--snapshots=true | |
--http.api=engine,eth,erigon,web3,net,debug,trace,txpool,ots | |
--http.addr=0.0.0.0 | |
--http.vhosts=* | |
--http.corsdomain=* | |
--ws | |
--port=30303 | |
--authrpc.port=8551 | |
--torrent.port=42069 | |
--private.api.addr=127.0.0.1:9090 | |
--metrics --metrics.addr=0.0.0.0 --metrics.port=6060 | |
--nat=any | |
--batchSize=1024M | |
--private.api.ratelimit=1024 | |
--db.read.concurrency=100 | |
--rpc.batch.concurrency=1000 | |
--rpc.batch.limit=1000 | |
--rpc.returndata.limit=500000 | |
--rpc.evmtimeout=0m30s | |
--ots.search.max.pagesize=100 | |
--graphql | |
ports: | |
- "8545:8545" | |
- "42069:42069/tcp" | |
- "42069:42069/udp" | |
- "30303:30303/tcp" | |
- "30303:30303/udp" | |
- "6060:6060" | |
volumes: | |
- /mnt/fourtb/erigon:/blockchain | |
# - /mnt/onetb/blockchain:/blockchain | |
- ./prometheus:/cmd/prometheus | |
- /mnt/onetb/erigon/snapshots:/blockchain/execution/snapshots | |
- /mnt/onetb/erigon/temp:/blockchain/execution/temp | |
# - /mnt/12TB/blockchain/snapshots:/blockchain/execution/snapshots | |
restart: unless-stopped | |
mem_swappiness: 0 | |
stop_grace_period: 240s | |
labels: | |
- traefik.enable=true | |
- traefik.http.routers.erigon.rule=Host(`rpc.pls369.com`) | |
- traefik.http.services.erigon.loadbalancer.server.port=8545 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
reverse-proxy: | |
# The official v3 Traefik docker image | |
image: traefik:v3.0 | |
# Enables the web UI and tells Traefik to listen to docker | |
#command: --api.insecure=true --providers.docker | |
ports: | |
# The HTTP port | |
- "80:80" | |
- "443:443" | |
# The Web UI (enabled by --api.insecure=true) | |
- "8080:8080" | |
volumes: | |
# So that Traefik can listen to the Docker events | |
- /var/run/docker.sock:/var/run/docker.sock | |
- ./traefik.yml:/traefik.yml | |
# Certs dir | |
- ./certs:/etc/certs:ro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log: | |
level: INFO | |
api: | |
insecure: true | |
dashboard: true | |
## Static configuration | |
entryPoints: | |
web: | |
address: ":80" | |
websecure: | |
address: ":443" | |
providers: | |
docker: | |
endpoint: "unix:///var/run/docker.sock" | |
exposedByDefault: false | |
file: | |
filename: "traefik.yml" | |
## Dynamic Configuration | |
tls: | |
certificates: | |
- certFile: /etc/certs/pls369.com.crt | |
keyFile: /etc/certs/pls369.com.key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment