Skip to content

Best practice to use gatus docker in order to see other docker container which are using network_mode: host option #644

Answered by k-jell
Staubgeborener asked this question in Q&A
Discussion options

You must be logged in to vote

Try adding this to your gatus configuration:

extra_hosts:
   - "host.docker.internal:host-gateway"

and use it in your config like this:
endpoints:

  - name: back-end
    group: core
    url: "http://host.docker.internal:8123"
    interval: 1m
    conditions:
      - "[STATUS] == 200"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TwiN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants