# docker compose network mode host

**URL:** <https://forums.balena.io/t/docker-compose-network-mode-host/194726>\
**Category:** balenaOS\
**Created:** [September 29, 2020, 8:28pm UTC](https://forums.balena.io/t/docker-compose-network-mode-host/194726 "2020-09-29T20:28:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mellerdaniel](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@mellerdaniel](https://forums.balena.io/u/mellerdaniel)\
**Post date:** [September 29, 2020, 8:28pm UTC](https://forums.balena.io/t/docker-compose-network-mode-host/194726/1 "2020-09-29T20:28:42Z")

</div>

Hi,  
We’ve added BLE support to our application, the service that uses the BLE support requires network\_mode host.  
will that make all the other services be in network\_mode host as well? till today they were communicating by the services names, obviously now that its using network\_mode host i cant reach it by its name.  
i’ve googled a lot but couldnt find the right way to communicate between services, that one of them is using the host network.  
is it possible without moving all our services to be on host network mode as well?

Daniel.

---

<div class="post-metadata">

**Author:** ![alanb128](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alanb128/32/2839_2.png) [@alanb128](https://forums.balena.io/u/alanb128)\
**Post date:** [September 30, 2020, 7:26pm UTC](https://forums.balena.io/t/docker-compose-network-mode-host/194726/5 "2020-09-30T19:26:11Z")

</div>

Hello, you may find this document helpful, especially the section on “Networking Types:” [https://www.balena.io/docs/learn/more/masterclasses/services-masterclass/#4-networking-types](https://www.balena.io/docs/learn/more/masterclasses/services-masterclass/#4-networking-types)  
If you are using a docker-compose file, by default the services will use a bridge network, and you can specify the ones you want to be in host mode by setting the service `network_mode` to `host` or even better, just expose the necessary ports to the host using the `ports` keyword.
