diff --git a/docker-compose-apisix.yml b/docker-compose-apisix.yml index f66ab24..9cefafc 100644 --- a/docker-compose-apisix.yml +++ b/docker-compose-apisix.yml @@ -46,7 +46,7 @@ services: - ./apisix/apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro depends_on: - etcd - network_mode: host + ##network_mode: host ports: - "9180:9180/tcp" - "9080:9080/tcp" @@ -77,8 +77,8 @@ services: environment: ETCD_ENABLE_V2: "true" ALLOW_NONE_AUTHENTICATION: "yes" - ETCD_ADVERTISE_CLIENT_URLS: "http://diyue_etcd:2379" - ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379" + ETCD_ADVERTISE_CLIENT_URLS: "http://127.0.0.1:2379" + ETCD_LISTEN_CLIENT_URLS: "http://diyue_etcd:2379" ports: - "2379:2379/tcp" deploy: