There are many ways to deploy Meteor applications:
- Compile into a node. JS app and deploy it Yourself (PM2, forever ... )
- Using MUP or MUPX
- Deploying on the Galaxy platform
- Using Docker
Various deployment scenarios have their own characteristics, this article does not do a detailed comparison, here is a brief introduction of how to use Docker in the Daocloud platform in the most concise way to do meteor application deployment:
- Create a Meteor app
- Add the Dockerfile file under the project root, in a word
From Zhaoyao91/meteord:onbuild
- Push the code to the cloud repository, take GitHub for example
Login Daocloud, if no account, then apply for account
- Create a code Build
- Build the code (build image from code). Typically, a build is triggered automatically once the code is created, and if you update the code, you can manually trigger the build
Deploy image (Generate container from image and run)
- Next, you can view the logs to see the application deployment and operational status. If you are deploying on a daocloud public cloud, when deployment is complete, a URL is automatically obtained to access the app
Introduction: Using Docker for product-level deployment of meteor applications (Getting started)