Changes

Jump to: navigation, search

Docker

20 bytes added, 21:39, 24 June 2018
docker-compose.yml syntax
* '''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:
- 9.9.9.9
</pre>
  * '''dns_search''': Custom DNS search domains. Can be a single value or a list.<pre>
dns_search: example.com
dns_search:
- dc1.example.com
- dc2.example.com
</pre> * '''entrypoint''': Override the default entrypoint.
<pre>
entrypoint: /code/entrypoint.sh
</pre>
Note: Setting entrypoint both overrides any default entrypoint set on the service’s image with the ENTRYPOINT Dockerfile instruction, and clears out any default command on the image - meaning that if there’s a CMD instruction in the Dockerfile, it is ignored.
  * '''env_file''': Add environment variables from a file. Can be a single value or a list.
<pre>
env_file:

Navigation menu