Method: Orchestration::DockerCompose::AppService.healthcheck

Defined in:
lib/orchestration/docker_compose/app_service.rb

.healthcheckObject



28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/orchestration/docker_compose/app_service.rb', line 28

def healthcheck
  {
    'test' => ['ruby', "/app/#{orchestration}/healthcheck.rb"],
    # Defaults according to
    # https://docs.docker.com/engine/reference/builder/#healthcheck
    # Except start_period which cannot be set to 0s
    'interval' => '30s',
    'timeout' => '30s',
    'start_period' => '5s',
    'retries' => 3
  }
end