47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
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 full
|
|
--gcmode full
|
|
--cache.preimages
|
|
--port 20748
|
|
--ws
|
|
--ws.port 8545
|
|
--ws.addr 0.0.0.0
|
|
--ws.origins=*
|
|
--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"
|
|
- "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`)"
|
|
- "traefik.http.routers.celo.middlewares=celo-stripprefix, ipwhitelist"
|
|
|
|
|
|
volumes:
|
|
celo:
|
|
|
|
|