7,540
edits
Changes
Docker
,→docker-compose.yml syntax
target: prod
</pre>
* image: define the base image of the container.
* container_name: define the name of the container that is created for the service.
{{note|
- If the build and the image is both provided, the image will be created with the name given in the image parameter.
- If the image tag is not provided, the default name of the new image is: </directory name>_<service_name>
- If the container_name is not provided, the container default name is: }}
* '''command''': Override the default command. <pre> command: ["bundle", "exec", "thin", "-p", "3000"] </pre>