Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions consul/consul.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ func (r *ConsulAdapter) buildCheck(service *bridge.Service) *consulapi.AgentServ
check.Script = fmt.Sprintf("check-cmd %s %s %s", service.Origin.ContainerID[:12], service.Origin.ExposedPort, cmd)
} else if script := service.Attrs["check_script"]; script != "" {
check.Script = r.interpolateService(script, service)
} else if script := service.Attrs["check_docker_script"]; script != "" {
check.Script = r.interpolateService(script, service)
check.DockerContainerID = service.Origin.ContainerID
if shell := service.Attrs["check_docker_shell"]; shell != "" {
check.Shell = shell
}

} else if ttl := service.Attrs["check_ttl"]; ttl != "" {
check.TTL = ttl
} else {
Expand Down