bridged networking (lxdbr0 by default) seems to be the most common method to make a service running in a container accessible to the outside world
in a different context I have picked up a statement implying macvlan being a more preferable solution https://discuss.erpnext.com/t/how-to-install-erpnext-in-a-linux-container-using-lxd/23787/3
I tend to avoid the default bridge mode within containers. If you use bridge mode, then there are ways to perhaps use a proxy on the host to access services running in the containers or do port forwarding and such.
For container networking, I personally prefer macvlan, but it’s hard to get good information about this
it’s implied macvlan would be ‘more secure’ by design somewhat (at least that’s how I understand that comment). Just curious whether anybody here shares that belief, or what the general take on
bridged networking may be.