This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Deploying the Microgateway as a Docker Container
Before you begin,
Install Docker. For instructions, see https://docs.docker.com/install/.
Sign in to docker.cloud.wso2.com with your username and password.
docker login docker.cloud.wso2.com Username: your_username@wso2.com Password: ****** Login Succeeded
Pull the docker image. A sample command is given below:
docker pull docker.cloud.wso2.com/wso2am-cloud-micro-gw:2.6.0
Run the docker container.
docker run -p127.0.0.1:8243:8243 -p127.0.0.1:8280:8280 -e "WSO2_CLOUD_ORG_KEY=your_organization_key" -e "WSO2_CLOUD_EMAIL=your_username@wso2.com" -e "WSO2_CLOUD_PASSWORD=your_cloud_password" docker.cloud.wso2.com/wso2am-cloud-micro-gw:2.6.0
You can enable gateway debug logs by passing the following environment variable when running the docker container:
-e "LOG4J_PROPERTIES=log4j.logger.org.apache.synapse.transport.http.headers=DEBUG, log4j.logger.org.apache.synapse.transport.http.wire=DEBUG"
- Test your Microgateway.
- If you create/update an API and publish/re-publish it from API Cloud Publisher, it could take up to a maximum of 10 minutes before your changes become effective in the Microgateway.
- If you create/update a throttling tier from API Cloud, it could take up to a maximum of 15 minutes before your changes become effective in the Microgateway.
- Statistics of API usage in your Microgateway are published to API Cloud every 6 - 6.5 hours.