Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

network_mode: host vs. port bindings #10

Open
maddhin opened this issue Oct 30, 2023 · 3 comments
Open

network_mode: host vs. port bindings #10

maddhin opened this issue Oct 30, 2023 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@maddhin
Copy link

maddhin commented Oct 30, 2023

Hi,

afaik, the use of network_mode: host together with ports: / port bindings has been depreciated. Or actually, the port bindings has been ignored if host was used.

Afaik tuya_mqtt.net uses port 80 to publish itself, or? Would it be possible to change this when using host to 8889?

Sorry if this already works, I cannot test as my image is not running. But at least the docker-compose docu should be updated;)

Cheers!

@volker76
Copy link
Owner

volker76 commented Nov 3, 2023

@maddhin you are right network_mode:host and port bindings does not go together. To have the internal web-gui exposed to another port inside the container, use the environment variable -e ASPNETCORE_URLS=http://*:8889

see
Run-in-docker-standalone

@volker76
Copy link
Owner

volker76 commented Nov 3, 2023

@maddhin I run docker-compose in the documented port settings under 20.10.22-qnap7 and docker desktop 4.22. do you get woith your docker any deprication warning?

@volker76 volker76 added the documentation Improvements or additions to documentation label Nov 3, 2023
@maddhin
Copy link
Author

maddhin commented Nov 3, 2023

on Raspbian 11 32bit w/ latest docker and docker-compose there is a warning message that one or the other should be used. If i remember correct the warning comes with docker -up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants