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/

相关推荐
玉梅小洋12 分钟前
CentOS :yum源配置及验证指南
linux·运维·centos·yum
zxsz_com_cn12 分钟前
设备预测性维护算法核心功能有哪些?六大模块拆解智能运维的“技术骨架”
运维·算法
自可乐15 分钟前
n8n全面学习教程:从入门到精通的自动化工作流引擎实践指南
运维·人工智能·学习·自动化
枷锁—sha21 分钟前
【SRC】越权漏洞检测
运维·服务器·网络·安全·网络安全·系统安全
UP_Continue36 分钟前
Linux--进程控制
linux·运维·服务器
等什么君!1 小时前
docker -数据卷技术
运维·docker·容器
上天_去_做颗惺星 EVE_BLUE2 小时前
Docker高效使用指南:从基础到实战模板
开发语言·ubuntu·docker·容器·mac·虚拟环境
小白跃升坊3 小时前
基于1Panel的AI运维
linux·运维·人工智能·ai大模型·教学·ai agent
杨江3 小时前
seafile docker安装说明
运维
好好沉淀3 小时前
Docker开发笔记(详解)
运维·docker·容器