I've been enjoying Traefik for its auto-discovery of containers. The only problem is that for a couple containers such as Plex and HomeAssistant I have host networking enabled. This usually results in Traefik failing to forward the traffic properly.
Having more fine grained control is exactly what Nginx is for! I don't want to switch my whole setup to Nginx since that would be a lot of configuration files for every docker container. But I think having configuration files for containers that use host networking is manageable.
In your docker-compose file first make sure that Traefik is disabled for containers that use host networking by adding the label `traefik.enable=false`
```yaml
homeassistant:
image: homeassistant/home-assistant
container_name: homeassistant
hostname: homeassistant
network_mode: host
environment:
- PUID=1000
- PGID=1000
volumes:
- /Volumes/homeassistant/config:/config
restart: always
labels:
- traefik.enable=false
```
Then add a new section for `nginx` adding the domains that you wish it to manage in the labels