Changes

Jump to: navigation, search

Docker

1 byte added, 20:16, 25 June 2018
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>
** '''dockerfile''': Dockerfile-alternate
** '''CONTEXT''': Either a path to a directory containing a Dockerfile, or a url to a git repository.
 
* '''command''': Override the default command. <pre> command: ["bundle", "exec", "thin", "-p", "3000"] </pre>

Navigation menu