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/

相关推荐
鲨莎分不晴几秒前
Nginx 部署前端项目实战指南
运维·前端·nginx
羊羊羊i1 小时前
使用Informer监听K8s资源
云原生·容器·kubernetes
VermiliEiz2 小时前
二进制文件部署k8s方式(5)
云原生·容器·kubernetes
java_logo2 小时前
QWEN3 企业级 Docker 容器化部署指南
运维·docker·容器·qwen3部署·qwen3部署文档·qwen3部署教程·qwen3部署方案
huohaiyu2 小时前
网络中的一些基本概念
运维·服务器·网络
Kiyra2 小时前
虚拟机假死?SSH 能连却卡 Logo 界面
运维·ssh
taihexuelang2 小时前
大模型部署
人工智能·docker·容器
2301_810746313 小时前
CKA冲刺40天笔记 - day24 Kubernetes Clusterrole 和 Clusterrole Binding
笔记·容器·kubernetes
tap.AI3 小时前
Deepseek(九)多语言客服自动化:跨境电商中的多币种、多语种投诉实时处理
运维·人工智能·自动化
ling-453 小时前
Linux-day09 11
linux·运维·服务器