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/

相关推荐
运维有小邓@10 分钟前
实时日志关联分析工具:智能检测潜在安全威胁
运维·网络·安全
m***923822 分钟前
docker中配置redis
redis·docker·容器
谷隐凡二27 分钟前
Docker 的核心理念及技术的简单说明
运维·docker·容器
daqinzl29 分钟前
Docker 安装 Ubuntu
ubuntu·docker
L***B56838 分钟前
如何安装linux版本的node.js
linux·运维·node.js
会飞的小蛮猪1 小时前
Ubuntu24.04 基于Containerd部署K8s1.34(私服部署)
docker·云原生·kubernetes
脏脏a1 小时前
【Linux】Linux进程状态深度解析
linux·运维·服务器
凉晓风1 小时前
Linux中常见几种自启动方式的区别
linux·运维·服务器
小熊officer2 小时前
Nginx学习
运维·学习·nginx
秋邱2 小时前
价值升维!公益赋能 + 绿色技术 + 终身学习,构建可持续教育 AI 生态
网络·数据库·人工智能·redis·python·学习·docker