How can I set network=host in HASS.io

How can I set network=host in HASS.io. According to this post

https://community.home-assistant.io/t/xiaomi-gateway-on-hassos/71809

According to above post, I already create docker-compose.yml like this one below but I don’t know the way to activate this config file. Does reboot server in HASS.io menu enough to activate it. If not, please kindly explain step to run command line. I already install SSH addon and I run command line via OSx’s terminal.

version: '3'
  services:
    homeassistant:
      container_name: home-assistant
      image: homeassistant/home-assistant
      volumes:
        - /config:/config
        - /etc/localtime:/etc/localtime:ro
      restart: always
      network_mode: host

You can’t use a docker compose file with hass.io