version: '3.8' services: dnsmasq: image: jpillora/dnsmasq container_name: dnsmasq restart: unless-stopped ports: - "53:53/udp" - "53:53/tcp" volumes: - ./dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf:ro cap_add: - NET_ADMIN networks: devnet: ipv4_address: ${DNSMASQ_IP} healthcheck: test: ["CMD", "nslookup", "localhost", "127.0.0.1"] interval: 30s timeout: 5s retries: 3 networks: devnet: external: true