apisix docker 安装

bash 复制代码
git clone https://github.com/apache/apisix-docker.git
cd apisix-docker/example
nano docker-compose
========================主要修改这里===============================
 ETCD_ADVERTISE_CLIENT_URLS: "http://192.168.31.160:2379"
===================================================================

docker compose -p docker-apisix up -d

#安装apisix-dashboard
docker pull apache/apisix-dashboard
nano /root/conf.yaml
===================================================================
conf:
  listen:
    host: 0.0.0.0   # the address on which the `Manager API` should listen.
                    # The default value is 0.0.0.0, if want to specify, please enable it.
                    # This value accepts IPv4, IPv6, and hostname.
    port: 9000      # The port on which the `Manager API` should listen.
 
  allow_list:       # If we don't set any IP list, then any IP access is allowed by default.
  etcd:
    endpoints:      # supports defining multiple etcd host addresses for an etcd cluster
      - 192.168.31.160:2379 # etcd install ip
authentication:
  secret:
    zQ5w5jkLDh3jZpywJ3sskrw6Yv633ruq
  expire_time: 3600     # jwt token expire time, in second
  users:                # yamllint enable rule:comments-indentation
    - username: admin       # dashboard login infomation
      password: admin
===================================================================
cd /
docker run -d --name dashboard -p 9001:9000 -v /root/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml apache/apisix-dashboard

浏览器输入:http://192.168.31.160:9001/

相关推荐
whiteBrocade3 小时前
APM-Grafana-Mimir代替Prometheus实现指标长期存储
docker·grafana·prometheus
skywalk81634 小时前
docker的开源跨平台替代Vagrant
linux·运维·docker·容器·vagrant
monster_风铃4 小时前
华为实验:SSH
运维·ssh
IDOlaoluo7 小时前
Linux 安装 JDK 8u291 教程(jdk-8u291-linux-x64.tar.gz 解压配置详细步骤)
java·linux·运维
神即道 道法自然 如来9 小时前
如何在linux(CentOS7)上面安装 jenkins?
linux·运维·jenkins
fouryears_234179 小时前
参考线程池构建一个高性能、配置驱动的Docker容器池
docker·容器·oj
xiao-xiang10 小时前
jenkins-飞书通知机制
运维·jenkins·飞书
David爱编程11 小时前
K8s下的安全上下文SecurityContext使用全解
云原生·容器·kubernetes
苹果醋311 小时前
React Native jpush-react-native极光推送 iOS生产环境接收不到推送
java·运维·spring boot·mysql·nginx
skywalk816313 小时前
Ubuntu24.04启动后显示:推荐安装输入法面板这个Gnome Shell,否则可能无法看到输入法窗口 extension/261/kimpanel
linux·运维·服务器