6 ms·
Just be careful about where "docker-compose.yml" ends up...the examples have database credentials.
by tyingq 11y ago
Just be careful about where "docker-compose.yml" ends up...the examples have database credentials.
- maque_onlyverse 11y agoyeah, also, isn't composed file part of docker layer and thus can be traced back even if you change them?
- lukeck 11y agoNo. 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.
- jayjohnson 11y agoAgreed. 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.