7,540
edits
Changes
Docker
,→docker-compose.yml syntax
** From version 3, if you specify image as well as build, then Compose names the built image with the webapp and optional tag specified in image
** Note: This option is ignored when deploying a stack in swarm mode with a (version 3) Compose file. The docker stack command accepts only pre-built images.
*** '''dockerfile''': Dockerfile-alternate
*** '''CONTEXT''': Either a path to a directory containing a Dockerfile, or a url to a git repository.
<pre>
version: '3'
dockerfile: Dockerfile-alternate
</pre>
* '''command''': Override the default command. <pre> command: ["bundle", "exec", "thin", "-p", "3000"] </pre>