Hello everyone, I recently redesigned my entire deployment process for Phoenix apps based on Docker. I really like the strategy that I came up with and it’s working very well for me so far. I have a new VPS which I’ve vowed to only install Docker on, and this strategy is perfect for my goal.
In addition, my strategy is optimized for:
- Running multiple apps on the same server
- Being compatible with deployment of any other kind of app (not just Elixir/Phoenix)
- Compilation completely separate from deployment so you can compile anywhere and deploy anywhere else
In the interest of helping others who might be struggling with the same thing, I’ve documented my entire process in a Gist. I would love to contribute to this wonderful community on what seems to be one of the most popular difficulties when it comes to Phoenix (deployment).
Please let me know if you have any thoughts. The post is here: Flexible Dockerized Phoenix Deployments.