Why is are my published ports not working?
David Maze was correct. The problem was that the process was binding to localhost in the container. I added a Rocket.toml file with the following entries
[global]address = "0.0.0.0"[development]address = "0.0.0.0"
and now it works fine.
Thanks David.
Rocket have different standard configuration, please try staging
or prod
to be able to do what you want, source.
ROCKET_ENV=staging cargo run
See also: