Skip to content

trying to get this to work but I am confused at the last step #1

@FriedTM

Description

@FriedTM

I just want to run unbound and Pi home. I am trying to use this image to accomplish this. My problem is that I dont know what the host ip should be. I am also running a nextcloud and home assistant on this device so I cannot use the standard ports. Any help would be appreciated.

HOSTNAME=PUREstack-010 # reuse it in your prometheus configuration to label your host-data consistantly
HOSTIP=192.188.1.55 # IP adress of the PUREstac host
LOKIIP=192.168.1.55 # IP adress of your LOKI server

services:
pihole:
image: pihole/pihole:latest
hostname: ${HOSTNAME}
ports:
- 4434:443/tcp
- 853:53/tcp
- 853:53/udp
- 8000:80/tcp
environment:
- TZ=America/New_York
- FTLCONF_webserver_api_password=q2kymdLJ46xZ6JeUd1Yv7DjRt
- FTLCONF_dns_upstreams=${HOSTIP}#5335
volumes:
- ./volumes/pihole/etc-pihole:/etc/pihole
restart: unless-stopped
unbound:
image: klutchell/unbound:latest
restart: unless-stopped
ports:
- 5335:5335/tcp
- 5335:5335/udp
labels:
- promtail_job=unbound
- promtail_host=${HOSTNAME}
volumes:
- ./volumes/unbound:/etc/unbound # location of unbound.conf and unbound.conf.d for additional .conf files
- ./volumes/unbound/blocklists:/opt/unbound/blocklists # Volume for custom blocklists
- unbound-run:/run/unbound # Volume for /run so Unbound can create its control socket. Used in remote control.
networks:
- dnsnet
depends_on:
- redis
redis:
image: redis:latest
restart: unless-stopped
ports:
- 6379:6379
networks:
- dnsnet
volumes:
- redis-data:/data # Named volume to persist Redis data
unbound-exporter:
image: unbound-exporter:latest # use your locally built image
restart: unless-stopped
ports:
- 9167:9167 # Prometheus metrics endpoint
depends_on:
- unbound
volumes:
- unbound-run:/run/unbound:ro # mount Unbound control socket
- ./volumes/unbound/blocklists:/opt/unbound/blocklists:ro # mount blocklists for exporter metrics
command:
- --web.listen-address=0.0.0.0:9167
- --unbound.uri=unix:///run/unbound/unbound.sock
promtail:
image: grafana/promtail:3.5.8
restart: unless-stopped
environment:
- HOSTNAME=${HOSTNAME}
- LOKIIP=${LOKIIP}
ports:
- 9080:9080 # Promtail HTTP server port
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro # to access docker logs in stdout
- ./volumes/promtail:/tmp # to store the last read positions
- ./volumes/promtail/promtail-config.yaml:/etc/promtail/config.yaml:ro # promtail configuration file
command: -config.file=/etc/promtail/config.yaml -config.expand-env=true
networks:
dnsnet:
driver: bridge # Dedicated bridge network for DNS + Redis communication
volumes:
unbound-run: null # Named volume for /run so Unbound can create its control socket. Used in remote control.
redis-data: null # Named volume for Redis persistence

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions