-
Notifications
You must be signed in to change notification settings - Fork 19
Docker Compose
Thomas Schuering edited this page Jul 24, 2015
·
3 revisions
The orchestration (or composition) that is defined by some docker-compose.yml MUST NOT contain the build:
-statement,
but only image:
-lines.
Using build:
would start (implicitly) a docker-build, that most likely require a completly different environment
than the runtime settings.
See image online documentation and build online documentation
Environment settings like username, api-id, ... MUST NOT be stored as part of the general sourcecode.
One convenient feature of docker-compose is the env-file:
- statement that includes a simple key/value
file that can be persisted separatly. See env-file online documentation
--