Setting a static IP address

I am trying to set a static IP address on a container so it is visible on the rest of the local network. I can ping it from the network, just cant access the apache it works page.

On the LXD host I run

lxc network set lxdbr0 ipv4.routes

Inside the alpine container I run

ip -4 addr add dev eth0

Is this correct way to do it?
Is this the same for public IP addresses?
What am I missing?

I think this is related to Setting a static IP address using network bridge so will answer there as has more context.