diff --git a/apisix/apisix_conf/config.yaml b/apisix/apisix_conf/config.yaml index 9a96a1b..3af6f1d 100644 --- a/apisix/apisix_conf/config.yaml +++ b/apisix/apisix_conf/config.yaml @@ -40,7 +40,7 @@ deployment: etcd: host: # it's possible to define multiple etcd hosts addresses of the same etcd cluster. - - "http://diyue_etcd:2379" # multiple etcd address + - "http://localhost:2379" # multiple etcd address prefix: "/apisix" # apisix configurations prefix timeout: 30 # 30 seconds diff --git a/docker-compose-apisix.yml b/docker-compose-apisix.yml index e00c7cc..cc62abe 100644 --- a/docker-compose-apisix.yml +++ b/docker-compose-apisix.yml @@ -76,7 +76,7 @@ services: environment: ETCD_ENABLE_V2: "true" ALLOW_NONE_AUTHENTICATION: "yes" - ETCD_ADVERTISE_CLIENT_URLS: "http://diyue_etcd:2379" + ETCD_ADVERTISE_CLIENT_URLS: "http://localhost:2379" ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379" ports: - "2379:2379/tcp"