compose/dnsmasq/docker-compose.yml
2024-12-29 10:10:22 +08:00

20 lines
410 B
YAML

version: "3.8"
services:
dnsmasq:
image: dnsmasq:latest
build:
context: .
dockerfile: Dockerfile
container_name: dnsmasq
restart: unless-stopped
# environment:
# CONFIG: |
# addn-hosts=/config/hosts
# resolv-file=/config/resolv.conf
# server=/ex/192.168.1.53
# address=/demo.ex/192.168.1.100
ports:
- "53:53/udp"
- "53:53/tcp"