I solved the issue by removing the line network_mode:host
form the docker-compose file.
It seems I didnt need the networking mode as host anyway. Also host networking mode is only supported in Linux. More details on docker documentation Use Host Networking
2 Likes