new arch
This commit is contained in:
26
docker-compose.dnsmasq.yml
Normal file
26
docker-compose.dnsmasq.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
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
|
||||
Reference in New Issue
Block a user