Deploying Rails app with docker-compose

ε祈祈猫儿з 提交于 2019-12-21 05:16:12

问题


Currently I have pretty standard env: nginx + web(Rails) + worker(Sidekiq) + Postgres + Redis + Data Containers(File storage and DB storage).

The deploy process looks pretty straightforward: - update source code; - rebuild container(s); - run migrations; - stop old and launch new containers;

For web (rails) and data (pg) containers it would be something like this: docker-compose build && docker-compose run web rake db:migrate && docker-compose up -d.

Are there any best practices and is this solution compatible with them? Capistrano uses releases approach (with ability to rollback) - is this approach applicable with Docker? Is it even possible to use Docker and Capistrano?

Please share your solutions or links to success stories.

Thanks!

来源:https://stackoverflow.com/questions/35419949/deploying-rails-app-with-docker-compose

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!