Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About network mode in docker-compose.yml file? #11

Open
ismarsantos opened this issue Apr 23, 2022 · 1 comment
Open

About network mode in docker-compose.yml file? #11

ismarsantos opened this issue Apr 23, 2022 · 1 comment

Comments

@ismarsantos
Copy link

Is this configuration necessary?

The networking stacks provided by container runtimes such as Docker introduce additional overheads that result in increased latency of UDP packets, so it is strongly recommended that you run Linux containers with host networking mode enabled in order to ensure the smoothest experience for users.

Oficial docker-compose.yml sample
...
signalling:
image: "ghcr.io/epicgames/pixel-streaming-signalling-server:${UNREAL_ENGINE_RELEASE}"
init: true
network_mode: "host"
...

https://unrealcontainers.com/docs/use-cases/dedicated-servers#key-considerations

@mvandervliet
Copy link
Contributor

I'm inclined to agree with this note. The basis is from the WebRTC protocol, namely the turn service dynamically allocates ports for client (browser) and stream (unreal) to establish the RTCPeerConnection.

In the case of this runtime, coturn is run as a DaemonSet with hostNetwork: true on the pod spec. See here.

Hope that helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants