Replies: 2 comments 3 replies
-
The examples aren't meant for docker, they're meant to show how to use axum. With that said I'm fine with changing it. Do you wanna make a PR? |
Beta Was this translation helpful? Give feedback.
2 replies
-
I think it might be a nice note to add |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Should the axum examples use 0.0.0.0 as their host to map too?
When using 127.0.0.1 as the host, the axum server isn't exposable through the typical docker port attribute.
If you use 0.0.0.0:3000 and expose port 3000 through your dockerfile it works, but
If you use 127.0.0.1:3000 and expose port 3000 through your dockerfile it will not work.
Is there a reason why the examples need to use 127.0.0.1, I feel like 0.0.0.0 works locally and in docker seamlessly so might as well just use 0.0.0.0 right?
Beta Was this translation helpful? Give feedback.
All reactions