Docker: Deploying to Stackhero for Docker
This documentation is part of the Introduction guide. View the full guide here: Introduction to Stackhero for Docker.
Welcome to the Stackhero documentation
Stackhero provides 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 up. There is no extra setup: just start your containers.- Pick your own domain name, secured automatically with HTTPS (for example: https://api.your-company.com, https://www.your-company.com, or https://backoffice.your-company.com).
- Benefit from strong performance and robust security on private, dedicated infrastructure.
- Apply updates with one click for simple, low-effort maintenance.
You can have your containers live in production in about five minutes. Stackhero manages the infrastructure, updates, and security for you, so you can focus on delivering your applications. Read 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.