Site iconAxway Blog

API Builder 4.0 Standalone – From Zero to Dockerized Microservice

In this blog post, we’ll discuss how to use API Builder Standalone to go from zero to a Dockerized API Builder service that can be run in any Docker-compatible infrastructure.

In this example, we’ll use MongoDB as our data source. You will need to have a MongoDB instance with a database already created with at least one Collection with data in it. I used MongoDB Atlas for my example. It’s free and hosted/managed.

We’ll leverage a few online guides from the Axway Documentation site and our data source will be MongoDB. We’ll also demonstrate how to pass in the MongoDB password at runtime as an environment variable, so that we are not hard-coding the password in our project.

Create and Test Your API Builder Project

Dockerize Your API Builder Service

Now that we have an API Builder Project built and tested, we can proceed to Dockerize it so that we can run it in our production environment

At this point, we are done. We have a Docker containerized Microservice that can be run in any Docker compatible infrastructure.

Conclusion

In this blog post, we saw how easy it is to create an API Builder project and Dockerize it, so that your Microservices can be run in any Docker compatible infrastructure.

Exit mobile version