Commit b8544cb2 authored by nimrod's avatar nimrod
Browse files

Add a custom health check.

Raise the start_period to high duration because of the way the container
starts up (pretty much runs the entier setup from scratch with Chef).
Now with the new Compose project health check script, it should not fail
as long as the state is starting instead of failing.
parent b80828d7
Loading
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -61,6 +61,21 @@ services:
        mattermost['enable'] = false

    # yamllint enable rule:line-length

    # This has been lifted from
    # https://gitlab.com/gitlab-org/omnibus-gitlab/-/blob/master/docker/Dockerfile
    # but with the single change of setting a high start_period.
    healthcheck:
      test:
        - "CMD"
        - "/opt/gitlab/bin/gitlab-healthcheck"
        - "--fail"
        - "--max-time"
        - "10"
      interval: 60s
      retries: 5
      start_period: 5m
      timeout: 30s
    ports:
      - '2222:22'
    volumes: