Deploy Apache APISIX with Docker
Manual deploy apisix via docker#
Create a network apisix#
Run etcd server with apisix network#
Specify ip 172.18.5.10
Note:
- Windows OS use absolute paths to hang in the configuration file.
- e.g:Windows dir path
E:\GitHub\docker-apisix,configuration file hang path is-v /e/github/docker-apisix/example/etcd_conf/etcd.conf.yml:/opt/bitnami/etcd/conf/etcd.conf.yml
Run Apache APISIX server#
You need etcd docker to work with Apache APISIX. You can refer to the docker-compose example.
Or you can run APISIX with Docker directly(Docker name is test-api-gateway):
Check or Modify etcd address to http: //172.18.5.10:2379 in pwd / example / apisix_conf / config.yaml: /usr/local/apisix/conf/config.yaml
Note:
- Windows OS use absolute paths to hang in the configuration file and log dir.
Have a test#
Test with admin api
e.g. Get route list, should be return