From afc9e8df7021af133b3bce961527c39faf3049e0 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Sun, 10 Mar 2024 16:23:25 +0800 Subject: [PATCH] update apisix --- apisix/apisix_conf/config.yaml | 8 ++++---- docker-compose-apisix.yml | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/apisix/apisix_conf/config.yaml b/apisix/apisix_conf/config.yaml index 192e473..09fb61f 100644 --- a/apisix/apisix_conf/config.yaml +++ b/apisix/apisix_conf/config.yaml @@ -40,12 +40,12 @@ deployment: etcd: host: # it's possible to define multiple etcd hosts addresses of the same etcd cluster. - - "http://172.22.237.11:2379" # multiple etcd address + - "http://etcd:2379" # multiple etcd address prefix: "/apisix" # apisix configurations prefix timeout: 30 # 30 seconds -# health_check_retry: 2 # etcd retry time that only affects the health check, default 2 -# tls: -# verify: false + health_check_retry: 2 # etcd retry time that only affects the health check, default 2 + tls: + verify: false plugin_attr: prometheus: diff --git a/docker-compose-apisix.yml b/docker-compose-apisix.yml index 602b116..4f24625 100644 --- a/docker-compose-apisix.yml +++ b/docker-compose-apisix.yml @@ -46,7 +46,6 @@ services: - ./apisix/apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro depends_on: - etcd - ##network_mode: host ports: - "9180:9180/tcp" - "9080:9080/tcp" @@ -76,7 +75,7 @@ services: environment: ETCD_ENABLE_V2: "true" ALLOW_NONE_AUTHENTICATION: "yes" - ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2379" + ETCD_ADVERTISE_CLIENT_URLS: "http://etcd:2379" ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379" ports: - "2379:2379/tcp"