How can I set network=host in

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

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 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'
      container_name: home-assistant
      image: homeassistant/home-assistant
        - /config:/config
        - /etc/localtime:/etc/localtime:ro
      restart: always
      network_mode: host

You can’t use a docker compose file with