News for hackers. Stuff that matters.
Re:A Docker Container Pattern – Compose Configuration by tyingq on Tuesday April 12, 2016 @04:04PM (#11483102)
Just be careful about where "docker-compose.yml" ends up...the examples have database credentials.
Re:A Docker Container Pattern – Compose Configuration by jayjohnson on Tuesday April 12, 2016 @11:32PM (#11485516)
Agreed. It is not a good idea to store the db user/password in a docker-compose.yml file, but it is nice for demonstrating with a container that's more than a "hello world" + non-production use cases.
Re:A Docker Container Pattern – Compose Configuration by maque_onlyverse on Tuesday April 12, 2016 @04:09PM (#11483142)
yeah, also, isn't composed file part of docker layer and thus can be traced back even if you change them?
Re:A Docker Container Pattern – Compose Configuration by lukeck on Tuesday April 12, 2016 @06:47PM (#11484246)
No. A docker-compose.yml just provides runtime configuration.

In other words, a Dockerfile specifies what you want to build, and a compose file specifies how you will run it.