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) platform, designed for fast and reliable container deployments:
- Deploy to production with a single
docker-compose upcommand. No additional configuration required: just launch your containers.- Choose your own domain name, automatically secured with HTTPS (for example: https://api.your-company.com, https://www.your-company.com, or https://backoffice.your-company.com).
- Take advantage of high performance and enhanced security on private, dedicated infrastructure.
- Apply updates with a single click for simple, effortless maintenance.
Your containers can be running in production in about five minutes. Stackhero manages the infrastructure, updates, and security for you, so you can focus on developing your applications. Learn more about Docker CaaS cloud hosting.
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.