diff --git a/avalanche-fuji-fullnode.yml b/avalanche-fuji-fullnode.yml new file mode 100644 index 00000000..74f8c138 --- /dev/null +++ b/avalanche-fuji-fullnode.yml @@ -0,0 +1,51 @@ +version: '3.1' + +services: + avalanche-fuji: + image: avaplatform/avalanchego:v1.11.11 + stop_grace_period: 3m + ulimits: + nofile: 1048576 + expose: + - "9650" + - "18507" + ports: + - "18507:18507/tcp" + - "18507:18507/udp" + volumes: + - avalanche-fuji:/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=18507 --public-ip=$IP" + restart: unless-stopped + + + avalanche-proxy: + restart: unless-stopped + image: nginx + depends_on: + - avalanche-fuji + expose: + - 80 + environment: + PROXY_HOST: avalanche-fuji + 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-stripprefix.stripprefix.prefixes=/avalanche-fuji" + - "traefik.http.services.avalanche-fuji.loadbalancer.server.port=80" + - "traefik.http.routers.avalanche-fuji.entrypoints=websecure" + - "traefik.http.routers.avalanche-fuji.tls.certresolver=myresolver" + - "traefik.http.routers.avalanche-fuji.rule=Host(`$DOMAIN`) && PathPrefix(`/avalanche-fuji`)" + - "traefik.http.routers.avalanche-fuji.middlewares=avalanche-fuji-stripprefix, ipwhitelist" + +volumes: + avalanche-fuji: