Docker部署Etcd、Apisix和Apisix-Dashboard
apisix版本:2.13.0-alpine
apisix-dashboard版本:2.10.1-alpine
etcd版本:3.4.16-debian-10-r14
https://registry.hub.docker.com/r/apache/apisix
https://registry.hub.docker.com/r/apache/apisix-dashboard
1)部署etcd
docker run -d --name etcd \
--net host \
-p 2379:2379 \
-p 2380:2380 \
-e ALLOW_NONE_AUTHENTICATION=yes \
-e ETCD_ADVERTISE_CLIENT_URLS=http://127.0.0.1:2379 \
bitnami/etcd:3.4.16-debian-10-r14
2)部署apisix
mkdir -p /opt/apisix/{conf,logs}
mkdir -p /opt/apisix-dashboard/{conf,logs}
touch /opt/apisix/conf/config.yaml
touch /opt/apisix-dashboard/conf/config.yaml
docker run -d --name apisix \
--net host \
-p 9080:9080 \
-p 9180:9180 \
-v /opt/apisix/conf/config.yaml:/usr/local/apisix/conf/config.yaml \
-v /opt/apisix/logs:/tmp/logs \
apache/apisix:2.13.0-alpine
3)部署apisix-dashboard
docker run -d --name apisix-dashboard \
--net host \
-p 9000:9000 \
-v /opt/apisix-dashboard/conf/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml \
-v /opt/apisix-dashboard/logs:/tmp/logs \
apache/apisix-dashboard:2.10.1-alpine