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/

相关推荐
杨凯凡3 分钟前
Linux性能大师:htop与nmon实战对比分析
linux·运维·服务器
IT闫20 分钟前
【Docker】——在Docker工具上安装创建容器并完成项目部署
运维·docker·容器
B64A-消闲30 分钟前
case和字符串操作
linux·运维·服务器
码农研究僧39 分钟前
Ubuntu 磁盘空间占用清理(宝塔)
linux·运维·ubuntu
若疆赤云online43 分钟前
window和ubuntu自签证书
linux·运维·ubuntu
活跃的煤矿打工人1 小时前
【星海出品】K8S调度器leader
云原生·容器·kubernetes
yangshuo12811 小时前
新ubuntu物理机开启ipv6让外网访问
linux·运维·ubuntu
背书包的儿郎1 小时前
docker--什么是docker
运维·docker·容器
绝顶少年1 小时前
反向代理、负载均衡与镜像流量:原理剖析、区别对比及 Nginx 配置实践
运维·nginx·负载均衡
别致的影分身1 小时前
Docker Container(容器)
运维·docker·容器