edit

Configuring Docker Flow Swarm Listener

The following environment variables can be used when creating the swarm-listener service.

Name Description
DF_DOCKER_HOST Path to the Docker socket
Default: unix:///var/run/docker.sock
DF_NOTIFY_LABEL Label that is used to distinguish whether a service should trigger a notification
Default: com.df.notify
Example: com.df.notifyDev
DF_NOTIFY_CREATE_SERVICE_URL Comma separated list of URLs that will be used to send notification requests when a service is created. If com.df.notifyService service labels is present, only URLs related to that service will be used. The com.df.notifyService label can have multiple values separated with comma (,).
Example: url1,url2
DF_NOTIFY_REMOVE_SERVICE_URL Comma separated list of URLs that will be used to send notification requests when a service is removed.
Example: url1,url2
DF_INCLUDE_NODE_IP_INFO Include node and ip information for service in notification.
Default:false
DF_NOTIFY_CREATE_NODE_URL Comma separated list of URLs that will be used to send notification requests when a node is created or updated.
Example: url1,url2
DF_NOTIFY_REMOVE_NODE_URL Comma separated list of URLs that will be used to send notification requests when a node is remove.
Example: url1,url2
DF_RETRY Number of notification request retries
Default: 50
Example: 100
DF_RETRY_INTERVAL Time between each notificationo request retry, in seconds.
Default: 5
Example:10