# 2023-07-29
#
# Local DNS server which properly handles DNS splitting.
# Necessary when using junk ISP gateways and running a domain.
# https://thekelleys.org.uk/dnsmasq/doc.html
#

services:
  app:
    container_name: dns-app
    build:
      context: ./
      network: host
    restart: always
    ports:
      - "53:53/udp"
      - "53:53/tcp"
    deploy:
      mode: global
      resources:
        limits:
          cpus: '0.50'
          memory: 512M
        reservations:
          cpus: '0.25'
          memory: 128M