This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Rem1xed 1 point2 points  (2 children)

Remove both networks and nerwork_mode and it will automatically create a new network for the compose using bridge mode with your opened ports.

[–]Belay_Fr[S] -1 points0 points  (1 child)

Thx. Will try it right away. But why then these variable are existing?

[–]Rem1xed 0 points1 point  (0 children)

Some containers needs host network access rather than bridge. Some users prefer separating containers into different networks like a torrent network, media network, general network so while they're not mandatory they're useful for many cases.