Docker: Deploying to Stackhero for Docker
This documentation is part of the Introduction guide. You can view the complete guide here: Introduction to Stackhero for Docker.
👋 Welcome to the Stackhero documentation!
Stackhero offers a ready-to-use Docker cloud CaaS (Containers as a Service) solution that provides a host of benefits, including:
- Easily deploy your containers to production with just a
docker-compose up.- Customizable domain name secured with HTTPS (for example, https://api.your-company.com, https://www.your-company.com, https://backoffice.your-company.com).
- Optimal performance and robust security powered by a private and dedicated VM.
- Effortless updates with just a click.
Save time and simplify your life: it only takes 5 minutes to try Stackhero's Docker CaaS cloud hosting solution and deploy your containers to production!
An effective approach for deploying containers to Stackhero for Docker involves using your local Docker CLI. This method allows you to execute Docker commands on your computer and have them run remotely on your Stackhero for Docker instance.
For example, you can build a container using a Dockerfile on your local setup and deploy it directly to your Stackhero for Docker instance. Here is a simple example of commands you might execute:
- Build the container:
docker build -t myContainer . - Deploy and run it:
docker run -d myContainer
By following these steps, your Docker container will be built and deployed to your remote instance. You can also use docker-compose for deploying services that involve multiple containers with a single docker-compose up command.