Docker - one container one failover ip

Im want to setup docker-compose configuration to set container assign external (failover) ip address.
Im getting error `failed to allocate gateway Requested address is out of range` because my gateway is outside the subnet.
Configuration with this subnet/gateway is working on common linux VM's but with docker it seems impossible cause of this error.

Im running docker on windows server.
Anybody know how to fix this issue?