2

I have a docker container as part of docker-compose that should reach other containers but as well a server running in my local network.
(the docker container is a monitoring service)

I know that in order to reach the local LAN I should configure the network mode to "host", is that correct? In that case am I still able to reach the other containers running in the default bridge network?

you are viewing a single comment's thread
view the rest of the comments
[-] not-the-real-chopin@alien.top 1 points 1 year ago

Thanks, it must have been some other problem. I'm able to reach my local network from within the docker container. I even found that the docker container is using the host DNS configuration.

I configured pi.hole as DNS server in the host machine and the docker container is using it too.

this post was submitted on 23 Oct 2023
2 points (100.0% liked)

Self-Hosted Main

504 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS