Skip to content

Instantly share code, notes, and snippets.

@Joniator
Created January 16, 2019 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Joniator/83bb3c6d933df5ec93b970503155f936 to your computer and use it in GitHub Desktop.
Save Joniator/83bb3c6d933df5ec93b970503155f936 to your computer and use it in GitHub Desktop.
pihole:
container_name: pihole
hostname: pihole.${DOMAIN}
image: pihole/pihole:latest
restart: always
environment:
ServerIP: ${DEVICE_IP}
VIRTUAL_HOST: pihole.${DOMAIN}
FTL_CMD: debug
dns:
- 127.0.0.1
- 1.1.1.1
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
volumes:
- ${TIME_MOUNT}
- ${DOCKER_PATH}/pihole/data:/etc/pihole/
- ${DOCKER_PATH}/pihole/pihole.log:/var/log/pihole.log
deploy:
placement:
constraints:
- node.labels.gateway == true
labels:
traefik.enabled: true
traefik.frontend.rule: "Host: pihole.${DOMAIN}"
traefik.port: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment