Open dyrnq opened 4 months ago
docker run \
-d \
--name local-nacos \
--restart always \
--privileged \
--network host \
--env "PORT=18848" \
--env "IP_AUTODETECTION_METHOD=interface=enp0s8" \
--env "BACKEND_SERVER=192.168.55.224:8848 check,192.168.55.225:8848 check,192.168.55.226:8848 check" \
--env "FQDN=nacos.local" \
--env "FQDN_IP_AUTODETECTION_METHOD=interface=enp0s8" \
--env "HTTPCHK_PARAMS=GET /nacos/v2/console/health/liveness" \
--volume /etc/hosts:/host/etc/hosts:rw \
dyrnq/local-haproxy:latest
docker run \
-d \
--name local-nacos-9848 \
--restart always \
--privileged \
--network host \
--env "PORT=19848" \
--env "IP_AUTODETECTION_METHOD=interface=enp0s8" \
--env "BACKEND_SERVER=192.168.55.224:9848 check,192.168.55.225:9848 check,192.168.55.226:9848 check" \
--env "ADV_CHECK=tcp-check" \
--volume /etc/hosts:/host/etc/hosts:rw \
dyrnq/local-haproxy:latest
curl -fSL http://nacos.local:18848/nacos/v2/console/health/liveness
{"code":0,"message":"success","data":"ok"}
mino