49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
services:
|
|
okt-chain-client:
|
|
image: okexchain/fullnode-mainnet:v1.7.0.5
|
|
stop_grace_period: 5m
|
|
ulimits:
|
|
nofile: 1048576
|
|
expose:
|
|
- "8545"
|
|
- "8546"
|
|
ports:
|
|
- "35885:35885/tcp"
|
|
- "35885:35885/udp"
|
|
volumes:
|
|
- ./okt-chain/mainnet:/root
|
|
- okt-chain:/datadir
|
|
networks:
|
|
- chains
|
|
restart: unless-stopped
|
|
|
|
okt-chain:
|
|
restart: unless-stopped
|
|
image: nginx
|
|
depends_on:
|
|
- okt-chain-client
|
|
expose:
|
|
- 80
|
|
environment:
|
|
PROXY_HOST: okt-chain-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.okt-chain-stripprefix.stripprefix.prefixes=/okt-chain"
|
|
- "traefik.http.services.okt-chain.loadbalancer.server.port=80"
|
|
- "traefik.http.routers.okt-chain.entrypoints=websecure"
|
|
- "traefik.http.routers.okt-chain.tls.certresolver=myresolver"
|
|
- "traefik.http.routers.okt-chain.rule=Host(`$DOMAIN`) && PathPrefix(`/okt-chain`)"
|
|
- "traefik.http.routers.okt-chain.middlewares=okt-chain-stripprefix, ipwhitelist"
|
|
|
|
volumes:
|
|
okt-chain:
|
|
|