update apisix

This commit is contained in:
BryantHe 2024-03-10 16:23:25 +08:00
parent 10c55bb3c5
commit afc9e8df70
2 changed files with 5 additions and 6 deletions

View File

@ -40,12 +40,12 @@ deployment:
etcd: etcd:
host: # it's possible to define multiple etcd hosts addresses of the same etcd cluster. 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 prefix: "/apisix" # apisix configurations prefix
timeout: 30 # 30 seconds timeout: 30 # 30 seconds
# health_check_retry: 2 # etcd retry time that only affects the health check, default 2 health_check_retry: 2 # etcd retry time that only affects the health check, default 2
# tls: tls:
# verify: false verify: false
plugin_attr: plugin_attr:
prometheus: prometheus:

View File

@ -46,7 +46,6 @@ services:
- ./apisix/apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro - ./apisix/apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro
depends_on: depends_on:
- etcd - etcd
##network_mode: host
ports: ports:
- "9180:9180/tcp" - "9180:9180/tcp"
- "9080:9080/tcp" - "9080:9080/tcp"
@ -76,7 +75,7 @@ services:
environment: environment:
ETCD_ENABLE_V2: "true" ETCD_ENABLE_V2: "true"
ALLOW_NONE_AUTHENTICATION: "yes" 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" ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
ports: ports:
- "2379:2379/tcp" - "2379:2379/tcp"