AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Cannot set `bind_host` in AdGuardHome.yaml (docker version)

Open pexcn opened this issue 4 years ago • 3 comments

Issue Details

  • Version of AdGuard Home server:
    • v0.107.3 (docker)
  • How did you install AdGuard Home:
    • docker
  • How did you setup DNS configuration:
    • Here is my config file: https://github.com/pexcn/docker-images/blob/master/ext/adguardhome/adguardhome-data/conf/AdGuardHome.yaml
    • Use docker-compose, here is my compose config: https://github.com/pexcn/docker-images/blob/master/ext/adguardhome/docker-compose.yml
  • CPU architecture:
    • AMD64
  • Operating system and version:
    • OpenWrt

Hi guys: Now I am using v0.107.3 version, I want to change bind_host to 192.168.1.1, but after restarting adguardhome, the value in the configuration file will automatically change to 0.0.0.0.

Maybe it has something to do with this line of the Dockerfile https://github.com/AdguardTeam/AdGuardHome/blob/v0.107.3/scripts/make/Dockerfile#L59, can it be fixed in the future? :smile:

pexcn avatar Jan 30 '22 17:01 pexcn

Is there an update on this issue? 😀 @ainar-g

pexcn avatar Oct 18 '22 05:10 pexcn

Necrobumping

With the -h 0.0.0.0 in the Dockerfile, AdGuard becomes unusable in my use case as I have two interfaces and port 80 is in use on one of them. Specifying the other interface's IP is the only way to use AdGuard and have individual client IPs listed in the interface.

jonathanjsimon avatar Nov 28 '22 15:11 jonathanjsimon

For anyone wanting to do this now, https://hub.docker.com/r/jsimon0/adguardhome

jonathanjsimon avatar Nov 30 '22 03:11 jonathanjsimon

Docker also allows overriding image defaults. So as a workaround I am using a custom command in my compose file omitting the host option:

command: [  "--no-check-update",  "-c",  "/opt/adguardhome/conf/AdGuardHome.yaml", "-w",  "/opt/adguardhome/work" ]

MarioNoll avatar Apr 02 '23 09:04 MarioNoll

Please have a look, we have implemented the requested changes. The new build version v0.108.0-a.579+e54fc9b1 has been just published to the edge channel.

Mizzick avatar Jun 23 '23 07:06 Mizzick

This should be fixed as of v0.107.33. Can any of you please check?

ainar-g avatar Jul 03 '23 13:07 ainar-g

@ainar-g Works fine in v.0.107.33, thanks!

MarioNoll avatar Jul 04 '23 12:07 MarioNoll