I, through docker-compose, pick up a few containers from this turnip and wrap my code. Containers and site work.
The question arose that the containers be assigned an address on the network (IP) and that any computer on the network could go to that address.
On this issue, I found more or less reputable answers here , but they imply a direct indication of which IP should be issued (after the issue, the site becomes accessible via this IP).
Now I am working on optimization and the question was: How can I get any free IP from DHCP, and how can I use it at startup?