please be aware all modifications inside the container are gone once there is an update and you have to repeat editing hosts file after each container changeā¦
Update: after reading through the topic again I see you can use docker network alias as described here: Probably DNS help with NC Docker + Collabora + Wireguard tunnel - #5 by wwe