# Pihole v6 & unbound in one Docker-Container

**URL:** <https://discourse.pi-hole.net/t/pihole-v6-unbound-in-one-docker-container/70091>\
**Category:** Beta 6.0\
**Created:** [May 8, 2024, 7:10pm UTC](https://discourse.pi-hole.net/t/pihole-v6-unbound-in-one-docker-container/70091 "2024-05-08T19:10:12Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)\
**Post date:** [May 9, 2024, 9:09am UTC](https://discourse.pi-hole.net/t/pihole-v6-unbound-in-one-docker-container/70091/5 "2024-05-09T09:09:08Z")

</div>

This `docker-compose` seems to complicated IMO. While this may work you should mind that Pi-hole also accepts hostnames (not only IP addresses) as upstream servers. You can omit the entire IP address definition and the complicated network configuration and simply specify `unbound` as the DNS server using the `pihole` container's environment.

---

_[View the full topic](https://discourse.pi-hole.net/t/pihole-v6-unbound-in-one-docker-container/70091)._
