Docker containers
  • Updated on 21 Jul 2020
  • 1 minute to read
  • Contributors
  • Print
  • Share
  • Dark
    Light

Docker containers

  • Print
  • Share
  • Dark
    Light

Hostman puts everything into Docker containers, whether it's a back-end application or a static website.

Additionally, Hostman is able to launch Docker images from a Docker repository or build a custom image using a Dockerfile.

Building & launching from Git

Click "Create a service" in the top-left corner of your Dashboard to open this window, and choose "Docker container":

Screen Shot 2020-06-16 at 3.47.47 PM.png

Connect your Github, Gitlab or Bitbucket repository. It should have a Dockerfile in the root directory. Hostman will also search for Dockerfiles in subdirectories.

Choose the location and hardware configuration of your container and click Deploy:
Screen Shot 2020-06-16 at 3.50.54 PM.png

That's pretty much it. You'll enter the deployment log, where you can monitor the progress of building your custom Docker image.

Environment variables

You can set up environment variables both in the Dockerfile or using the "Environment settings" page in your Dashboard.

Was this article helpful?