A lightweight PHP/SQLite API gateway managing routing, auth, rate-limiting, and metrics.
142
This is a PHP + SQLite API Gateway containerized for rapid deployment. Think of it as a traffic controller for your microservices or API endpointsβit manages routing, authentication, rate limiting, and metrics reporting in a lightweight package.
To run the gateway as a service, use the following configuration.
You can pull and run the image directly:
docker run -d \
-p 8000:80 \
--name api-gateway \
iquipe/api-rout:beta
You can customize the deployment by passing environment variables:
| Variable | Description | Default |
|---|---|---|
DB_PATH | Path for the SQLite database | /var/www/html/db/gateway.sqlite |
CACHE_ENABLED | Toggle caching mechanism | true |
adminadmin123http://localhost:8000/adminhttp://localhost:8000https://youtu.be/MXYPjv6OP8YOnce the container is running, verify connectivity with these commands:
Test your routes:
curl -X GET http://localhost:8000/users \
-H "Authorization: Basic YWRtaW46YWRtaW4xMjM=" \
-H "X-Client-ID: client123"
Check system metrics:
curl -X GET http://localhost:8000/metrics \
-H "Authorization: Basic YWRtaW46YWRtaW4xMjM=" \
-H "X-Client-ID: client123"
Content type
Image
Digest
sha256:232bb39f0β¦
Size
190.4 MB
Last updated
3 months ago
docker pull iquipe/api-rout:beta