Closed
Description
Latency
I am experiencing high latencies when I use the example docker compose file. Is this normal?
Normal latency
My normal latency is between 25 and 50ms...
Thanks in advance
edit: the latency in the cloudflared docker container is much much better:
Container latency
version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
hostname: home-server
image: pihole/pihole:latest
mac_address: '02:42:6a:57:70:bf'
networks:
pihole:
ipv4_address: 172.21.0.2
ports:
- "53:53/tcp"
- "53:53/udp"
#- "67:67/udp" # DHCP Server
- "80:80/tcp"
- "443:443/tcp"
environment:
TZ: 'Europe/Berlin'
WEBPASSWORD: 'XXX'
DNS1: 172.21.0.3#5053
DNS2: 172.21.0.3#5053
ServerIP: 192.168.178.45
# Volumes store your data between container upgrades
volumes:
- './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
#- './var-log/pihole.log:/var/log/pihole.log'
dns:
- 127.0.0.1
- 1.1.1.1
# Recommended but not required (DHCP needs NET_ADMIN)
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN
restart: unless-stopped
cloudflared:
image: crazymax/cloudflared:latest
container_name: cloudflared
hostname: cloudflared
networks:
pihole:
ipv4_address: 172.21.0.3
environment:
TZ: 'Europe/Berlin'
TUNNEL_DNS_UPSTREAM: 'https://1.1.1.1/dns-query,https://1.0.0.1/dns-query'
restart: unless-stopped
networks:
pihole:
ipam:
config:
- subnet: 172.21.0.0/24