first try
This commit is contained in:
31
tron.yml
Normal file
31
tron.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
services:
|
||||
tron-fullnode:
|
||||
image: tronprotocol/java-tron:GreatVoyage-v4.7.7
|
||||
stop_grace_period: 5m
|
||||
ulimits:
|
||||
nofile: 1048576
|
||||
expose:
|
||||
- "8090"
|
||||
ports:
|
||||
- "25814:25814/tcp"
|
||||
- "25814:25814/udp"
|
||||
volumes:
|
||||
- tron-fullnode-db:/java-tron/output-directory/database
|
||||
- tron-fullnode-logs:/java-tron/logs
|
||||
- ./tron/config:/java-tron/config
|
||||
networks:
|
||||
- chains
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.middlewares.tron-fullnode-stripprefix.stripprefix.prefixes=/tron-fullnode"
|
||||
- "traefik.http.services.tron-fullnode.loadbalancer.server.port=8090"
|
||||
- "traefik.http.routers.tron-fullnode.entrypoints=websecure"
|
||||
- "traefik.http.routers.tron-fullnode.tls.certresolver=myresolver"
|
||||
- "traefik.http.routers.tron-fullnode.rule=Host(`$DOMAIN`) && PathPrefix(`/tron-fullnode`)"
|
||||
- "traefik.http.routers.tron-fullnode.middlewares=tron-fullnode-stripprefix, ipwhitelist"
|
||||
|
||||
volumes:
|
||||
tron-fullnode-db:
|
||||
tron-fullnode-logs:
|
||||
|
||||
Reference in New Issue
Block a user