codex-storage / codex-testnet-starter

Codex Testnet Starter
https://testnet.codex.storage
4 stars 4 forks source link

Add a script for run with a binary #13

Closed veaceslavdoina closed 7 months ago

veaceslavdoina commented 7 months ago

Running Codex via Docker compose with bridge network driver network=bridge adds a NAT and Docker assign ephemeral ports for outgoing connections and whole configuration does not work as expected.

And host network driver can't be used on all OSs

The host networking driver only works on Linux hosts, and is not supported on Docker Desktop for Mac, Docker Desktop for Windows, or Docker EE for Windows Server. network=host is working only on Linux.

Even if we can set network=host on macOS, nothing is changed and it is still do a NAT.

Running with a binary works well and we also can use WireGuard VPN with port forwarding. PR adds a basic script and we can adjust it later.