Some games, like HLDS servers don't like to change port with the -p argument and we also like pretty DNS-names for our LAN-servers. For that reason, macvlan was the perfect match.
These compose-files are used for deploying gameserver-stacks on docker-swarm with a macvlan network.
- First create a config only net on all nodes (Thank you ansible)
$ docker network create --config-only --subnet 10.50.1.0/24 -o parent=eth0.50 --ip-range 10.50.1.2/24 confignet
- Create macvlan on master node
$ docker network create -d macvlan --scope swarm --config-from confignet swarm-macvlan
- Deploy stack
$ docker stack deploy -c csgo.yml