Summary
The simplest way to get your Docker-based application to production is to deploy it onto a single host with Docker Compose. If you have properly prepared the host with the right software, including Docker Compose, you can deploy your application there in a production-ready configuration. This can be completed in a matter of hours and can serve applications with low to moderate performance and availability demands efficiently. If you make the right adjustments to your configuration files, your application will be ready to deploy to production. By using shell scripts that encapsulate long, verbose commands, you can more easily handle regular maintenance and updates for your applications. In the simplest case, you can use external monitoring and alerting for this class of application and handle this concern with low effort.
You can apply what you have learned in this chapter to increase the sophistication of the Dockerfile and the docker-compose.yml
file that support your application...