diff --git a/celo-fullnode.yml b/celo-fullnode.yml new file mode 100644 index 00000000..d0ee119e --- /dev/null +++ b/celo-fullnode.yml @@ -0,0 +1,47 @@ +version: '3.1' + +services: + celo: + image: us.gcr.io/celo-org/geth:1.8 + restart: unless-stopped + stop_grace_period: 1m + command: | + --verbosity 3 + --syncmode snap + --state.scheme path + --db.engine pebble + --gcmode full + --cache.preimages + --port 20748 + --ws + --ws.port 8545 + --ws.addr 0.0.0.0 + --http + --http.vhosts=* + --http.addr 0.0.0.0 + --http.api eth,net,web3,debug,admin,personal + --datadir /root/.celo + expose: + - 8545 + - 8546 + ports: + - '20748:20748/tcp' # p2p + - '20748:20748/udp' # p2p + volumes: + - celo:/root/.celo + networks: + - chains + labels: + - "traefik.enable=true" + - "traefik.http.middlewares.celo-stripprefix.stripprefix.prefixes=/celo-archive" + - "traefik.http.services.celo.loadbalancer.server.port=8545" + - "traefik.http.routers.celo.entrypoints=websecure" + - "traefik.http.routers.celo.tls.certresolver=myresolver" + - "traefik.http.routers.celo.rule=Host(`$DOMAIN`) && PathPrefix(`/celo-archive`)" + - "traefik.http.routers.celo.middlewares=celo-stripprefix, ipwhitelist" + + +volumes: + celo: + +