forked from charx0r/POKT_DOKT
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathavalanche-archive.yml
47 lines (43 loc) · 2.07 KB
/
avalanche-archive.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
version: '3.1'
services:
avalanche:
image: avaplatform/avalanchego:v1.12.0
ulimits:
nofile: 1048576
expose:
- "9650"
- "9651"
ports:
- "9651:9651/tcp"
- "9651:9651/udp"
volumes:
- avalanche:/root/.avalanchego
- ./avalanche/configs/chains/C/archive-config.json:/root/.avalanchego/configs/chains/C/config.json
networks:
- chains
command: "/avalanchego/build/avalanchego --http-host= --http-allowed-hosts=*"
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.avalanche-replacepath.replacepath.path=/ext/bc/C/rpc"
- "traefik.http.middlewares.avalanche-stripprefix.stripprefix.prefixes=/avalanche-archive"
- "traefik.http.services.avalanche.loadbalancer.server.port=9650"
- "traefik.http.routers.avalanche.entrypoints=websecure"
- "traefik.http.routers.avalanche.tls.certresolver=myresolver"
- "traefik.http.routers.avalanche.service=avalanche"
- "traefik.http.routers.avalanche.rule=Host(`$DOMAIN`) && PathPrefix(`/avalanche-archive`)"
- "traefik.http.routers.avalanche.middlewares=avalanche-stripprefix, avalanche-replacepath, ipwhitelist"
- "traefik.http.middlewares.avalanche-ws-replacepath.replacepath.path=/ext/bc/C/ws"
- "traefik.http.middlewares.avalanche-ws-stripprefix.stripprefix.prefixes=/avalanche-archive-ws"
- "traefik.http.services.avalanche-ws.loadbalancer.server.port=9650"
- "traefik.http.routers.avalanche-ws.entrypoints=websecure"
- "traefik.http.routers.avalanche-ws.tls.certresolver=myresolver"
- "traefik.http.routers.avalanche-ws.service=avalanche"
- "traefik.http.routers.avalanche-ws.rule=Host(`$DOMAIN`) && PathPrefix(`/avalanche-archive-ws`)"
- "traefik.http.routers.avalanche-ws.middlewares=avalanche-ws-stripprefix, avalanche-ws-replacepath, ipwhitelist"
- "prometheus-scrape.enabled=true"
- "prometheus-scrape.port=9650"
- "prometheus-scrape.job_name=avalanche-archive"
- "prometheus-scrape.metrics_path=/ext/metrics"
volumes:
avalanche: