Reputation: 1174
Is it possible to make all ports opened in Docker? I suppose that I can create network
and set it up somehow, but I can't find how (while I know that it's possible).
To be precise I mean that i want to have in docker-compose.yml
networks:
- my_network
instead of
ports:
- 12000:12000
networks:
- my_network
Upvotes: 0
Views: 192
Reputation: 4879
Use host network that way all ports will be open.
Use network_mode in the yaml file
network_mode: "host"
Upvotes: 1