Custom Docker containers
Last updated
Was this helpful?
Last updated
Was this helpful?
It is possible to deploy your own docker container on mobingi ALM. Simply type in the name of your docker image on docker hub and you are ready to go.
Mobingi ALM also automatically maps port 80 and 443 exposed by the container to the port 80 and 443 respectively on the machine. Other ports are ignored.
If a custom docker container does not have a configuration file, mobingi ALM will immediately switch new connections to the new container the moment it starts. If your docker container needs to perform certain tasks before it is able to start, it needs to signal that it is ready to accept connections.
Without a configuration file also, mobingi ALM will only deploy code into the /var/www
folder.
In order to enable and specify a specific folder for the code deploys to place code in, the container must have the following things:
A config file in the root directory
The startup command must write running into the /var/log/container_status
file when it is ready to accept connections.
This is an example config file: