71 lines
2.4 KiB
YAML
71 lines
2.4 KiB
YAML
|
|
services:
|
|
viction-mainnet-archive-download:
|
|
image: alpine:latest
|
|
user: root
|
|
environment:
|
|
- SNAPSHOT_URL=https://snapshot.viction.xyz/archive-node
|
|
volumes:
|
|
- viction-mainnet-node-archive-leveldb-hash:/tomochain/data
|
|
- ./viction/scripts/download.node.sh:/download.sh
|
|
command: sh -c "/download.sh"
|
|
restart: "no"
|
|
profiles:
|
|
- manual
|
|
|
|
viction-mainnet-archive-client:
|
|
image: buildonviction/node:v2.4.5
|
|
stop_grace_period: 5m
|
|
ulimits:
|
|
nofile: 1048576
|
|
expose:
|
|
- "8545"
|
|
- "8546"
|
|
ports:
|
|
- "10184:10184/tcp"
|
|
- "10184:10184/udp"
|
|
volumes:
|
|
- viction-mainnet-node-archive-leveldb-hash:/tomochain/data
|
|
networks:
|
|
- chains
|
|
env_file:
|
|
- ./viction/mainnet/env
|
|
environment:
|
|
EXTIP: "${IP}"
|
|
P2P_PORT: 10184
|
|
command:
|
|
- --tomox
|
|
- --tomox.datadir=/tomochain/data/tomox
|
|
- --gcmode=archive
|
|
- --syncmode=full
|
|
- --rpcapi=eth,debug,net,db,admin,web3
|
|
restart: unless-stopped
|
|
|
|
viction-mainnet-archive:
|
|
restart: unless-stopped
|
|
image: nginx
|
|
depends_on:
|
|
- viction-mainnet-archive-client
|
|
expose:
|
|
- 80
|
|
environment:
|
|
PROXY_HOST: viction-mainnet-archive-client
|
|
RPC_PORT: 8545
|
|
RPC_PATH: ""
|
|
WS_PORT: 8546
|
|
WS_PATH: ""
|
|
networks:
|
|
- chains
|
|
volumes:
|
|
- ./nginx-proxy:/etc/nginx/templates
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.middlewares.viction-mainnet-node-archive-leveldb-hash-stripprefix.stripprefix.prefixes=/viction-mainnet-archive"
|
|
- "traefik.http.services.viction-mainnet-node-archive-leveldb-hash.loadbalancer.server.port=80"
|
|
- "traefik.http.routers.viction-mainnet-node-archive-leveldb-hash.entrypoints=websecure"
|
|
- "traefik.http.routers.viction-mainnet-node-archive-leveldb-hash.tls.certresolver=myresolver"
|
|
- "traefik.http.routers.viction-mainnet-node-archive-leveldb-hash.rule=Host(`$DOMAIN`) && PathPrefix(`/viction-mainnet-archive`)"
|
|
- "traefik.http.routers.viction-mainnet-node-archive-leveldb-hash.middlewares=viction-mainnet-node-archive-leveldb-hash-stripprefix, ipwhitelist"
|
|
|
|
volumes:
|
|
viction-mainnet-node-archive-leveldb-hash: |