forked from charx0r/POKT_DOKT
-
Notifications
You must be signed in to change notification settings - Fork 7
/
avalanche-fuji-fullnode.yml
51 lines (47 loc) · 1.77 KB
/
avalanche-fuji-fullnode.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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-fuji-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: