英文:
How to run docker-compose up on deploy
问题
我有一个 docker-compose 文件,我想将其发送到 Heroku,然后执行 docker-compose up -d --build。
我找到了一百多个关于如何执行类似 heroku container:push web 的示例,但这不是我需要的。
现在我只有 5 个在 docker-compose 中的服务,但当它们达到 30 个时,我该怎么办?
英文:
I have docker-compose file, and I want to send it to Heroku, to then execute docker-compose up -d --build.
I found more than a hundred examples of how to do something like heroku container:push web, but this is not what I need.
Now I have only 5 services in docker-compose, but what do I do, when they will be 30?
答案1
得分: 5
docker-compose 不受支持,但Heroku提供了 heroku.yml 来处理多个镜像:
https://devcenter.heroku.com/articles/build-docker-images-heroku-yml
英文:
docker-compose is not supported but Heroku provides heroku.yml to deal with multiple images:
https://devcenter.heroku.com/articles/build-docker-images-heroku-yml
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论