init fuji archive
This commit is contained in:
51
avalanche-fuji-archive.yml
Normal file
51
avalanche-fuji-archive.yml
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
version: '3.1'
|
||||||
|
|
||||||
|
services:
|
||||||
|
avalanche-fuji-archive:
|
||||||
|
image: avaplatform/avalanchego:v1.11.11
|
||||||
|
stop_grace_period: 3m
|
||||||
|
ulimits:
|
||||||
|
nofile: 1048576
|
||||||
|
expose:
|
||||||
|
- "9650"
|
||||||
|
- "58849"
|
||||||
|
ports:
|
||||||
|
- "58849:58849/tcp"
|
||||||
|
- "58849:58849/udp"
|
||||||
|
volumes:
|
||||||
|
- avalanche-fuji-archive:/root/.avalanchego
|
||||||
|
- ./avalanche/configs/chains/C/fullnode-config.json:/root/.avalanchego/configs/chains/C/config.json
|
||||||
|
networks:
|
||||||
|
- chains
|
||||||
|
command: "/avalanchego/build/avalanchego --network-id=fuji --http-host= --http-allowed-hosts=* --staking-port=58849 --public-ip=$IP"
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
|
||||||
|
avalanche-fuji-archive-proxy:
|
||||||
|
restart: unless-stopped
|
||||||
|
image: nginx
|
||||||
|
depends_on:
|
||||||
|
- avalanche-fuji-archive
|
||||||
|
expose:
|
||||||
|
- 80
|
||||||
|
environment:
|
||||||
|
PROXY_HOST: avalanche-fuji-archive
|
||||||
|
RPC_PORT: 9650
|
||||||
|
RPC_PATH: /ext/bc/C/rpc
|
||||||
|
WS_PORT: 9650
|
||||||
|
WS_PATH: /ext/bc/C/ws
|
||||||
|
networks:
|
||||||
|
- chains
|
||||||
|
volumes:
|
||||||
|
- ./nginx-proxy:/etc/nginx/templates
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.middlewares.avalanche-fuji-archive-stripprefix.stripprefix.prefixes=/avalanche-fuji-archive"
|
||||||
|
- "traefik.http.services.avalanche-fuji-archive.loadbalancer.server.port=80"
|
||||||
|
- "traefik.http.routers.avalanche-fuji-archive.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.avalanche-fuji-archive.tls.certresolver=myresolver"
|
||||||
|
- "traefik.http.routers.avalanche-fuji-archive.rule=Host(`$DOMAIN`) && PathPrefix(`/avalanche-fuji-archive`)"
|
||||||
|
- "traefik.http.routers.avalanche-fuji-archive.middlewares=avalanche-fuji-archive-stripprefix, ipwhitelist"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
avalanche-fuji-archive:
|
||||||
@@ -190,7 +190,8 @@
|
|||||||
],
|
],
|
||||||
"default": [
|
"default": [
|
||||||
"avalanche-fuji-fullnode"
|
"avalanche-fuji-fullnode"
|
||||||
]
|
],
|
||||||
|
"archive": ["avalanche-fuji-archive"]
|
||||||
},
|
},
|
||||||
"celo": {
|
"celo": {
|
||||||
"id": 42220,
|
"id": 42220,
|
||||||
|
|||||||
Reference in New Issue
Block a user