How do I attach a macvlan network and assign a static Ip address in compose file?

I keep looking at that “swarm mode” and some resultant warnings and wonder that myself. I seem to have added something via portainer. Time to see if I can undo/turn-off.