Skip to content

Edge on Docker

The edge authenticates to the hub with the hub-link PSK. Its iroh identity is its node.key, generated on first boot and persisted under /data — mount a volume so the identity survives restarts.

Terminal window
docker run -d --name towonel-edge \
-p 443:443 -p 51820:51820/udp \
-v towonel-edge-data:/data \
-e TOWONEL_EDGE_ENABLED=true \
-e TOWONEL_HUB_ENABLED=false \
-e TOWONEL_EDGE_HUB_LINK_ADDR=hub.example.eu:51444 \
-e TOWONEL_EDGE_HUB_LINK_PSK=$(cat hub.link.psk) \
-e TOWONEL_EDGE_ADVERTISED_ADDRESSES=fra1.example.eu:443 \
codeberg.org/towonel/towonel-node:latest

See Federation for the hub↔edge control link.