Changes

Jump to: navigation, search

Docker

345 bytes added, 21:32, 24 June 2018
Version 1.0
There are three major versions of compose file format.
===Version 1.0===
'''build''':<br>In version 1 file format, build is different in two ways:
* Only the string form (build: .) is allowed - not the object form that is allowed in Version 2 and up.
* Using build together with image is not allowed. Attempting to do so results in an error.
 
 
'''dockerfile''': Dockerfile-alternate
 
 
'''command''': Override the default command.
<pre>
command: ["bundle", "exec", "thin", "-p", "3000"]
</pre>
 
 
'''container_name''': Specify a custom container name, rather than a generated default name
 
 
'''dns''': Custom DNS servers. Can be a single value or a list.
<pre>
dns: 8.8.8.8
dns:
- 8.8.8.8
- 9.9.9.9
</pre>
==Good to know==

Navigation menu