Customizing Container Services
Background
The following are examples of what custom container services can be used for:
When recording requests from a service, a local instance may be needed. The local instance of the service can be added here
When testing, a custom container can be used to trigger the tests after all the services have initialized. An
entrypointservice is provided for this purpose
Customizing
Each workflow provides a
docker-compose.ymlfor the purpose of adding custom container services. It can be accessed in the following location:
.stoobly/docker/<SERVICE-NAME>/<WORKFLOW-NAME>/docker-compose.ymlCustom services should be added under the
servicesproperty. A custom service also needs to include the workflow name underprofiles. For example, if the current workflow isrecord, then:
$ cat .stoobly/docker/<SERVICE-NAME>/<WORKFLOW-NAME>/docker-compose.yml
services:
helloWorld:
image: hello-world
profiles:
- recordOptional: if your custom service requires network access to other container services, then specify the appropriate network. To learn more about which network to specify, see:
For example:
$ cat .stoobly/docker/<SERVICE-NAME>/<WORKFLOW-NAME>/docker-compose.yml
services:
helloWorld:
image: hello-world
networks:
- app.egress
profiles:
- recordLast updated
Was this helpful?