Skip to content

Leopere/docker-dnsmasq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-dnsmasq

Docker Pulls Image Size MIT License

It's a dnsmasq Docker image. It is half the size of the original fork at 3 MB in size. It is just an CMD to the dnsmasq binary.

Goals

I'm essentially making this container to fit one single deployment case, however one of these days I may make it a lot better with examples and other silly fun things.

Usage

If you have docker and docker-compose installed then you're all set to copy and paste this into wherever you plan on running it from. Good luck and have fun.

version: '3.4'

services:
  dnsmasq:
    image: leopere/dnsmasq
    restart: always
    ports:
      - '53:53/tcp'
      - '53:53/udp'
    volumes:
      - './dnsmasq.conf:/etc/dnsmasq.conf'
    cap_add:
      - NET_ADMIN
    logging:
      driver: "json-file"
      options:
        max-size: "200k"
        max-file: "10"