Skip to content

Commit

Permalink
add dnsmasq compose
Browse files Browse the repository at this point in the history
  • Loading branch information
metavige committed May 23, 2021
1 parent 68660e2 commit cb6e402
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion dnsmasq/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,21 @@ services:
image: jpillora/dnsmasq
ports:
- 53:53/udp
- 5300:8080
volumes:
- ${PWD}/dnsmasq.conf:/etc/dnsmasq.conf
environment:
- "HTTP_USER=foo"
- "HTTP_PASS=bar"
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.dnsmasq.tls=true'
- 'traefik.http.routers.dnsmasq.rule=HostRegexp(`dnsmasq.docker.internal`)'
- 'traefik.http.routers.dnsmasq.entrypoints=websecure'
- 'traefik.http.services.dnsmasq-service.loadbalancer.server.port=8080'
- 'traefik.docker.network=devops'
networks:
- devops
networks:
devops:
external: true

0 comments on commit cb6e402

Please sign in to comment.