We run Temporal in Swarm and to be able to do this we need a more flexible way of setting broadcastAddress.
Right now we solve the problem by a minor change in
if [ "$TEMPORAL_BROADCAST_ADDRESS_FILTER" != "" ]; then for IP in $HOST_IP; do if [[ "$IP" =~ ^$TEMPORAL_BROADCAST_ADDRESS_FILTER ]]; then export TEMPORAL_BROADCAST_ADDRESS="$IP" fi done fi
With this we can make the service bind to the network range we specified for the overlay
temporal-network in swarm.
We can start with these env-variables:
This could be better solved in the code allowing to select between interfaces, CIDR etc.
If this functionality is something you want we could do a pull request .