Free server. Docker Hosting Chat API
We continue to expand and improve the capabilities of the service to simplify the life of developers. Our novelty is free Docker hosting for Chat API clients.
We know how often there are difficulties with deploying a Webhook for our projects, especially if there is no time to create your own server. Therefore, we are opening up the opportunity to host our applications on our Docker hosting for free.
It all works simply and we'll go through each point: 1) Check if you have Docker?; 2) Install Dockerize (a free solution for our customers); 3) Test and deploy your application on our hosting service.
Install Docker. You can do this at the officially website. You can check if it is already installed with the command docker help
Next, install Dockerize:
Get a free Docker Instance in your personal account. It's quick and easy, all you have to do is link it to your main messenger instance!
You'll immediately get your Docker token to use for authorization:
Let's create our app! To do this, enter this line with the name of your application:
Now, in the working directory, we need to create a Dockerfile, which will contain the instructions for building the image from which the container will run. In it we will write:
Create a .dockerignore file and put some local files there that will be ignored (npm-debug.log and .idea)
It's time to test your application locally with a command: dockerize test
This will start your application on port 8080. Open localhost:8080 to check. Finally, let's deploy it
Your app is downloaded and available at test-chat-api-bot.dockerize.xyz (change to your app name in the format {name}.dockerize.xyz)
Looks pretty simple, doesn't it?Try it yourself!