I’m having trouble with my docker-compose file. I want to use WOL which I believe needs te container to urn with network_mode host. Below is my compose file. But it fails with the error:
ERROR: The Compose file ‘./docker-compose.yml’ is invalid because:
Unsupported config option for home-assistant: ‘network_mode’
I’ve tried it with quotes around host and no quotes - but neither work. Works fine if I take it out, but then WoL doesn’t work. Any ideas what I’m doing wrong?
FWIW I still have ports defined in mine but i also use network_mode: host. It’s a vestige of when I wasn’t running in host mode and I just keep it in case I go back. I run docker-compose 2 so maybe that’s the difference.