Logo

Command Palette

Search for a command to run...

Service configuration options

Overview

Service configurations allow you to customize many aspects of a Cloud 66 services. These are defined in the service.yml file. If you're unfamiliar with service configurations, please read our introductory guide first.

Service configuration options

This is the complete list of all service configuration directives for Cloud 66 Container Service V1. For more detailed information about an option, click the link provided.

OptionDescription
build_commandSpecifies the command you would like to run during application build.
build_rootSpecifies the directory of your repository in which you wish to run your Docker build.
commandSpecifies the command used to start your container.
deploy_commandSpecifies the command you would like to run during application deploy (runs once per service).
dns_behaviourSpecifies the dns behaviour for this service. Accepted values: versioned, non-versioned. Defaults to versioned.
dockerfile_pathSpecifies the location of the Dockerfile to be used for building this service, eg. docker/Dockerfile.
tagsArbitrary tags for services
git_urlThe URL for the Git repository from which your Docker image will be built.
git_branchThe Git repository branch your Docker image will be based on.
use_habitusUse Habitus build workflow
use_habitus_stepThe Habitus step to use for the build.
healthOne of the values: default, none or a hash containing at least one of type, endpoint, protocol, accept or timeout.
imageThe image you would typically run docker pull from.
load_balancingSpecifies the load balancing method for this service. Accepted values: roundrobin, sticky, closest. Default value is roundrobin
log_folderFolder your services logs to, mounted to /var/log/containers/service on the host filesystem.
portsThe ports that are running within the container, as well as their corresponding external ports.
privileged (default: false)Boolean value to indicate whether the container should be run with extended privileges.
requiresArray of other defined service names that should be started before this service during build and deployment.
restart_on_deploy (default: true)Boolean value to indicate whether the containers of this service should be restarted during deployment.
stop_graceDuration between the Docker TERM and KILL signals when Docker stop is run and a container is stopped.
traffic_matchesThe automatically configured traffic names in your Nginx config that will route traffic to these containers based on request DNS name. Allows microservices on the same port routes by subdomain for instance.
volumesVolumes mounted from host into container. Syntax: Array of absolute paths, with the format HOST_FOLDER:CONTAINER_FOLDER. Optional 'ro' on the end for read-only. e.g. /tmp/host:/tmp/container:ro
work_dirSpecifies the working directory in your image for any command to be run.