Update docker-compose.yml

This commit is contained in:
HoraceZhang 2024-10-29 10:48:08 +08:00 committed by GitHub
parent 6f45680e0f
commit f2640dc602
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,10 +13,12 @@ services:
- DEFAULT_LISTEN_GRPC_MULTIADDR=/ip4/0.0.0.0/tcp/8337
- DEFAULT_LISTEN_REST_MULTIADDR=/ip4/0.0.0.0/tcp/8338
- DEFAULT_STATS_MULTIADDR=/dns/stats.quilibrium.com/tcp/443
ports:
- '${QUILIBRIUM_P2P_PORT:-8336}:8336/udp' # p2p
- '127.0.0.1:${QUILIBRIUM_GRPC_PORT:-8337}:8337/tcp' # gRPC
- '127.0.0.1:${QUILIBRIUM_REST_PORT:-8338}:8338/tcp' # REST
# hz服务器需要 删除ports使用host,安装ufw防火墙
network_mode: 'host'
# ports:
# - '${QUILIBRIUM_P2P_PORT:-8336}:8336/udp' # p2p
# - '127.0.0.1:${QUILIBRIUM_GRPC_PORT:-8337}:8337/tcp' # gRPC
# - '127.0.0.1:${QUILIBRIUM_REST_PORT:-8338}:8338/tcp' # REST
healthcheck:
test: ["CMD", "grpcurl", "-plaintext", "localhost:8337", "list", "quilibrium.node.node.pb.NodeService"]
interval: 30s