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. Both of these are in seperate git repos.

Question: Where and how should I check my docker-compose.yml file into git?

  • Dockerfile: COPY folder inside folder
  • Docker Swarm DNS server address
  • Multiple docker containers of same image and memory usage
  • create a web2py docker image and access it through browser
  • container monitoring not enabled by default
  • scalable meanjs on digitalocean
  • My containers:

    • Nginx
    • Redis
    • MySQL
    • Nodejs App
    • PHP App

  • Building a Docker Image with rstan on rocker/verse
  • Docker image vs container
  • How to build docker source code after modifying it?
  • Using fs.stat to get stats from a file inside a docker container directory
  • Nginx Angular2/Angular routes
  • Integrating Docker-Machine with Amazon EC2
  • One Solution collect form web for “Source controlling (git) docker-compose.yml”

    I think that I’ve accidentally answered to this question in other thread: (perhaps it is a partial answer)

    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.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.