geth is not default

This commit is contained in:
Para Dox
2025-05-19 15:20:38 +07:00
parent 88140231ce
commit 22a7b3ea1b
8 changed files with 260 additions and 20 deletions

View File

@@ -19,7 +19,7 @@
#
# docker compose up -d
#
# curl -X POST https://${IP}.traefik.me/celo-alfajores-archive \
# curl -X POST https://${IP}.traefik.me/celo-alfajores-geth-archive \
# -H "Content-Type: application/json" \
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
x-logging-defaults: &logging-defaults
@@ -29,7 +29,7 @@ x-logging-defaults: &logging-defaults
max-file: '3'
services:
celo-alfajores-archive:
celo-alfajores-geth-archive:
image: ${CELO_GETH_IMAGE:-us.gcr.io/celo-org/geth}:${CELO_ALFAJORES_GETH_VERSION:-1.8.9}
sysctls:
# TCP Performance
@@ -85,12 +85,12 @@ services:
- prometheus-scrape.port=6060
- prometheus-scrape.path=/debug/metrics/prometheus
- traefik.enable=true
- traefik.http.middlewares.celo-alfajores-geth-archive-leveldb-hash-stripprefix.stripprefix.prefixes=/celo-alfajores-archive
- traefik.http.middlewares.celo-alfajores-geth-archive-leveldb-hash-stripprefix.stripprefix.prefixes=/celo-alfajores-geth-archive
- traefik.http.services.celo-alfajores-geth-archive-leveldb-hash.loadbalancer.server.port=8545
- ${NO_SSL:-traefik.http.routers.celo-alfajores-geth-archive-leveldb-hash.entrypoints=websecure}
- ${NO_SSL:-traefik.http.routers.celo-alfajores-geth-archive-leveldb-hash.tls.certresolver=myresolver}
- ${NO_SSL:-traefik.http.routers.celo-alfajores-geth-archive-leveldb-hash.rule=Host(`$DOMAIN`) && (Path(`/celo-alfajores-archive`) || Path(`/celo-alfajores-archive/`))}
- ${NO_SSL:+traefik.http.routers.celo-alfajores-geth-archive-leveldb-hash.rule=Path(`/celo-alfajores-archive`) || Path(`/celo-alfajores-archive/`)}
- ${NO_SSL:-traefik.http.routers.celo-alfajores-geth-archive-leveldb-hash.rule=Host(`$DOMAIN`) && (Path(`/celo-alfajores-geth-archive`) || Path(`/celo-alfajores-geth-archive/`))}
- ${NO_SSL:+traefik.http.routers.celo-alfajores-geth-archive-leveldb-hash.rule=Path(`/celo-alfajores-geth-archive`) || Path(`/celo-alfajores-geth-archive/`)}
- traefik.http.routers.celo-alfajores-geth-archive-leveldb-hash.middlewares=celo-alfajores-geth-archive-leveldb-hash-stripprefix, ipallowlist
volumes:

View File

@@ -19,7 +19,7 @@
#
# docker compose up -d
#
# curl -X POST https://${IP}.traefik.me/celo-alfajores \
# curl -X POST https://${IP}.traefik.me/celo-alfajores-geth \
# -H "Content-Type: application/json" \
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
x-logging-defaults: &logging-defaults
@@ -29,7 +29,7 @@ x-logging-defaults: &logging-defaults
max-file: '3'
services:
celo-alfajores:
celo-alfajores-geth:
image: ${CELO_GETH_IMAGE:-us.gcr.io/celo-org/geth}:${CELO_ALFAJORES_GETH_VERSION:-1.8.9}
sysctls:
# TCP Performance
@@ -85,12 +85,12 @@ services:
- prometheus-scrape.port=6060
- prometheus-scrape.path=/debug/metrics/prometheus
- traefik.enable=true
- traefik.http.middlewares.celo-alfajores-geth-pruned-leveldb-hash-stripprefix.stripprefix.prefixes=/celo-alfajores
- traefik.http.middlewares.celo-alfajores-geth-pruned-leveldb-hash-stripprefix.stripprefix.prefixes=/celo-alfajores-geth
- traefik.http.services.celo-alfajores-geth-pruned-leveldb-hash.loadbalancer.server.port=8545
- ${NO_SSL:-traefik.http.routers.celo-alfajores-geth-pruned-leveldb-hash.entrypoints=websecure}
- ${NO_SSL:-traefik.http.routers.celo-alfajores-geth-pruned-leveldb-hash.tls.certresolver=myresolver}
- ${NO_SSL:-traefik.http.routers.celo-alfajores-geth-pruned-leveldb-hash.rule=Host(`$DOMAIN`) && (Path(`/celo-alfajores`) || Path(`/celo-alfajores/`))}
- ${NO_SSL:+traefik.http.routers.celo-alfajores-geth-pruned-leveldb-hash.rule=Path(`/celo-alfajores`) || Path(`/celo-alfajores/`)}
- ${NO_SSL:-traefik.http.routers.celo-alfajores-geth-pruned-leveldb-hash.rule=Host(`$DOMAIN`) && (Path(`/celo-alfajores-geth`) || Path(`/celo-alfajores-geth/`))}
- ${NO_SSL:+traefik.http.routers.celo-alfajores-geth-pruned-leveldb-hash.rule=Path(`/celo-alfajores-geth`) || Path(`/celo-alfajores-geth/`)}
- traefik.http.routers.celo-alfajores-geth-pruned-leveldb-hash.middlewares=celo-alfajores-geth-pruned-leveldb-hash-stripprefix, ipallowlist
volumes:

View File

@@ -19,7 +19,7 @@
#
# docker compose up -d
#
# curl -X POST https://${IP}.traefik.me/celo-mainnet-archive \
# curl -X POST https://${IP}.traefik.me/celo-mainnet-geth-archive \
# -H "Content-Type: application/json" \
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
x-logging-defaults: &logging-defaults
@@ -29,7 +29,7 @@ x-logging-defaults: &logging-defaults
max-file: '3'
services:
celo-mainnet-archive:
celo-mainnet-geth-archive:
image: ${CELO_GETH_IMAGE:-us.gcr.io/celo-org/geth}:${CELO_MAINNET_GETH_VERSION:-1.8.9}
sysctls:
# TCP Performance
@@ -85,12 +85,12 @@ services:
- prometheus-scrape.port=6060
- prometheus-scrape.path=/debug/metrics/prometheus
- traefik.enable=true
- traefik.http.middlewares.celo-mainnet-geth-archive-leveldb-hash-stripprefix.stripprefix.prefixes=/celo-mainnet-archive
- traefik.http.middlewares.celo-mainnet-geth-archive-leveldb-hash-stripprefix.stripprefix.prefixes=/celo-mainnet-geth-archive
- traefik.http.services.celo-mainnet-geth-archive-leveldb-hash.loadbalancer.server.port=8545
- ${NO_SSL:-traefik.http.routers.celo-mainnet-geth-archive-leveldb-hash.entrypoints=websecure}
- ${NO_SSL:-traefik.http.routers.celo-mainnet-geth-archive-leveldb-hash.tls.certresolver=myresolver}
- ${NO_SSL:-traefik.http.routers.celo-mainnet-geth-archive-leveldb-hash.rule=Host(`$DOMAIN`) && (Path(`/celo-mainnet-archive`) || Path(`/celo-mainnet-archive/`))}
- ${NO_SSL:+traefik.http.routers.celo-mainnet-geth-archive-leveldb-hash.rule=Path(`/celo-mainnet-archive`) || Path(`/celo-mainnet-archive/`)}
- ${NO_SSL:-traefik.http.routers.celo-mainnet-geth-archive-leveldb-hash.rule=Host(`$DOMAIN`) && (Path(`/celo-mainnet-geth-archive`) || Path(`/celo-mainnet-geth-archive/`))}
- ${NO_SSL:+traefik.http.routers.celo-mainnet-geth-archive-leveldb-hash.rule=Path(`/celo-mainnet-geth-archive`) || Path(`/celo-mainnet-geth-archive/`)}
- traefik.http.routers.celo-mainnet-geth-archive-leveldb-hash.middlewares=celo-mainnet-geth-archive-leveldb-hash-stripprefix, ipallowlist
volumes:

View File

@@ -19,7 +19,7 @@
#
# docker compose up -d
#
# curl -X POST https://${IP}.traefik.me/celo-mainnet \
# curl -X POST https://${IP}.traefik.me/celo-mainnet-geth \
# -H "Content-Type: application/json" \
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
x-logging-defaults: &logging-defaults
@@ -29,7 +29,7 @@ x-logging-defaults: &logging-defaults
max-file: '3'
services:
celo-mainnet:
celo-mainnet-geth:
image: ${CELO_GETH_IMAGE:-us.gcr.io/celo-org/geth}:${CELO_MAINNET_GETH_VERSION:-1.8.9}
sysctls:
# TCP Performance
@@ -85,12 +85,12 @@ services:
- prometheus-scrape.port=6060
- prometheus-scrape.path=/debug/metrics/prometheus
- traefik.enable=true
- traefik.http.middlewares.celo-mainnet-geth-pruned-leveldb-hash-stripprefix.stripprefix.prefixes=/celo-mainnet
- traefik.http.middlewares.celo-mainnet-geth-pruned-leveldb-hash-stripprefix.stripprefix.prefixes=/celo-mainnet-geth
- traefik.http.services.celo-mainnet-geth-pruned-leveldb-hash.loadbalancer.server.port=8545
- ${NO_SSL:-traefik.http.routers.celo-mainnet-geth-pruned-leveldb-hash.entrypoints=websecure}
- ${NO_SSL:-traefik.http.routers.celo-mainnet-geth-pruned-leveldb-hash.tls.certresolver=myresolver}
- ${NO_SSL:-traefik.http.routers.celo-mainnet-geth-pruned-leveldb-hash.rule=Host(`$DOMAIN`) && (Path(`/celo-mainnet`) || Path(`/celo-mainnet/`))}
- ${NO_SSL:+traefik.http.routers.celo-mainnet-geth-pruned-leveldb-hash.rule=Path(`/celo-mainnet`) || Path(`/celo-mainnet/`)}
- ${NO_SSL:-traefik.http.routers.celo-mainnet-geth-pruned-leveldb-hash.rule=Host(`$DOMAIN`) && (Path(`/celo-mainnet-geth`) || Path(`/celo-mainnet-geth/`))}
- ${NO_SSL:+traefik.http.routers.celo-mainnet-geth-pruned-leveldb-hash.rule=Path(`/celo-mainnet-geth`) || Path(`/celo-mainnet-geth/`)}
- traefik.http.routers.celo-mainnet-geth-pruned-leveldb-hash.middlewares=celo-mainnet-geth-pruned-leveldb-hash-stripprefix, ipallowlist
volumes: