apisix-docker
by apache
A Dockerized deployment of Apache APISIX, a high-performance, dynamic API Gateway for managing and securing API traffic.
the docker for Apache APISIX
Primary Use Case
This tool is used to quickly deploy Apache APISIX API Gateway in containerized environments using Docker, enabling developers and DevOps teams to manage API traffic with features like load balancing, authentication, and observability. It is ideal for organizations looking to secure and automate API traffic management in both stand-alone and distributed configurations.
- Dynamic, real-time API Gateway
- Supports stand-alone and etcd-based configuration modes
- Rich traffic management including load balancing and canary release
- Circuit breaking and authentication plugins
- Observability features for API traffic
- Handles both north-south and east-west traffic
- Docker container deployment for easy setup
- Integration with etcd for distributed configuration management
Installation
- Start an APISIX container in stand-alone mode using: docker run -d --name apache-apisix -p 9080:9080 -e APISIX_STAND_ALONE=true apache/apisix
- For etcd-based configuration, start an etcd container with: docker run -d --name etcd --net host -e ALLOW_NONE_AUTHENTICATION=yes -e ETCD_ADVERTISE_CLIENT_URLS=http://127.0.0.1:2379 bitnami/etcd:latest
- Start APISIX container connected to etcd with: docker run -d --name apache-apisix --net host apache/apisix
- Alternatively, create a Docker network with: docker network create apisix-network --driver bridge
- Start etcd container on the created network with port mappings and environment variables
- Create an APISIX configuration file (config.yaml) specifying etcd hosts and admin access
- Start APISIX container on the created network referencing the config.yaml
Usage
>_ docker run -d --name apache-apisix -p 9080:9080 -e APISIX_STAND_ALONE=true apache/apisixStarts the APISIX container in stand-alone mode with default configuration.
>_ docker exec -i apache-apisix sh -c 'cat > /usr/local/apisix/conf/apisix.yaml <<_EOC_ ... _EOC_'Adds route and plugin configuration to the running APISIX container by overwriting the apisix.yaml file.
>_ curl http://127.0.0.1:9080/Tests the APISIX API Gateway by sending a request to the configured route.
>_ docker run -d --name etcd --net host -e ALLOW_NONE_AUTHENTICATION=yes -e ETCD_ADVERTISE_CLIENT_URLS=http://127.0.0.1:2379 bitnami/etcd:latestStarts an etcd container with no authentication, used as the configuration center for APISIX.
>_ docker run -d --name apache-apisix --net host apache/apisixStarts APISIX container connected to the etcd configuration center using the host network.
>_ docker network create apisix-network --driver bridgeCreates a Docker virtual network for APISIX and etcd containers.
>_ docker run -d --name etcd --network apisix-network -p 2379:2379 -p 2380:2380 -e ALLOW_NONE_AUTHENTICATION=yes -e ETCD_ADVERTISE_CLIENT_URLS=http://127.0.0.1:2379 bitnami/etcd:latestStarts etcd container on the created Docker network with port mappings.
>_ docker run -d --name apache-apisix --network apisix-network -p 9080:9080 -v $(pwd)/config.yaml:/usr/local/apisix/conf/config.yaml apache/apisixStarts APISIX container on the Docker network using a custom configuration file.
- Integrate APISIX Docker deployment into CI/CD pipelines to automate API security testing and enforcement.
- Leverage APISIX’s dynamic routing and authentication plugins to implement adaptive API access controls mitigating exploitation risks.
- Use APISIX observability features to detect anomalous API traffic patterns indicative of reconnaissance or attack attempts.
- Combine APISIX with centralized etcd configuration for scalable, distributed API security management in microservices environments.
- Conduct purple team exercises simulating API gateway attacks and defenses to improve detection and response capabilities.
Docs Take 2 Hours. AI Takes 10 Seconds.
Ask anything about apisix-docker. Installation? Config? Troubleshooting? Get answers trained on real docs and GitHub issues—not generic ChatGPT fluff.
This tool hasn't been indexed yet. Request indexing to enable AI chat.
Admin will review your request within 24 hours
Related Tools
API-Security-Checklist
shieldfy/API-Security-Checklist
Checklist of the most important security countermeasures when designing, testing, and releasing your API
express-gateway
ExpressGateway/express-gateway
A microservices API Gateway built on top of Express.js
API-Security
OWASP/API-Security
OWASP API Security Project
akto
akto-api-security/akto
Proactive, Open source API security → API discovery, API Security Posture, Testing in CI/CD, Test Library with 1000+ Tests, Add custom tests, Sensitive data exposure
fizz-gateway-node
fizzgate/fizz-gateway-node
API聚合网关 An Aggregation API Gateway API集成、API脱敏、API安全、API溯源
api-firewall
wallarm/api-firewall
Fast and light-weight API proxy firewall for request and response validation by OpenAPI specs.
