From 8d148c12eb0bae8651bf804e27da02a9f026671c Mon Sep 17 00:00:00 2001 From: BryantHe Date: Sun, 10 Mar 2024 13:44:24 +0800 Subject: [PATCH] update apisix --- apisix/apisix_conf/config.yaml | 5 ++++- docker-compose-apisix.yml | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apisix/apisix_conf/config.yaml b/apisix/apisix_conf/config.yaml index 3af6f1d..09fb61f 100644 --- a/apisix/apisix_conf/config.yaml +++ b/apisix/apisix_conf/config.yaml @@ -40,9 +40,12 @@ deployment: etcd: host: # it's possible to define multiple etcd hosts addresses of the same etcd cluster. - - "http://localhost: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 plugin_attr: prometheus: diff --git a/docker-compose-apisix.yml b/docker-compose-apisix.yml index cc62abe..9641ed4 100644 --- a/docker-compose-apisix.yml +++ b/docker-compose-apisix.yml @@ -71,12 +71,13 @@ services: etcd: image: bitnami/etcd:latest + hostname: 'etcd' volumes: - etcd_data:/bitnami/etcd environment: ETCD_ENABLE_V2: "true" ALLOW_NONE_AUTHENTICATION: "yes" - ETCD_ADVERTISE_CLIENT_URLS: "http://localhost:2379" + ETCD_ADVERTISE_CLIENT_URLS: "http://etcd:2379" ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379" ports: - "2379:2379/tcp"