基于docker Apisix安装部署

## network


方便使用name进行交互

docker network create -d bridge new_bridge

## etcd

docker run -it --name etcd  --env ALLOW_NONE_AUTHENTICATION=yes  --network=new_bridge -d bitnami/etcd

## apisix

mkdir -p /app/apisix/conf
curl -o /app/apisix/conf/config.yaml https://raw.githubusercontent.com/apache/apisix-docker/master/example/apisix_conf/config.yaml
docker run --network=new_bridge -v /app/apisix/conf/config.yaml:/usr/local/apisix/conf/config.yaml --name as -itd  -p 9080:9080 apache/apisix


## dashboard

curl -o /app/apisix/conf/conf.yaml https://raw.githubusercontent.com/apache/apisix-docker/master/example/dashboard_conf/conf.yaml

docker run -itd -p 29000:9000 -v /app/apisix/conf/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml --name asd --network=new_bridge -itd apache/apisix-dashboard


登录访问

ip:29000
admin/admin

你可能感兴趣的:(linux,docker)