[英]Source controlling (git) docker-compose.yml
My docker-compose.yml
file orchestrates the containers for a PHP API based app and a Nodejs web frontend. 我
docker-compose.yml
文件编排了基于PHP API的应用程序和Nodejs Web前端的容器。 Both of these are in seperate git repos. 两者都在单独的git repos中。
Question: Where and how should I check my docker-compose.yml
file into git? 问题: 我应该在哪里以及如何将
docker-compose.yml
文件检入git?
My containers: 我的容器:
I think that I've accidentally answered to this question in other thread: https://stackoverflow.com/a/34001663/381939 (perhaps it is a partial answer) 我认为我不小心在其他线程中回答了这个问题: https : //stackoverflow.com/a/34001663/381939 (也许这是部分答案)
Anyway, for a situation similar to yours, I have a separate repository for deployment related scripts and configuration. 无论如何,对于与您类似的情况,我有一个单独的存储库,用于与部署相关的脚本和配置。 Also, I use git submodules for linking the application repositories into the deployment repo.
另外,我使用git子模块将应用程序存储库链接到部署存储库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.