AndrewBeasley

Docker Unbound

Aug 4th, 2025
540
0
129 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.61 KB | Software | 0 0
  1. version: "3"
  2.  
  3. services:
  4.     unbound:
  5.         image: klutchell/unbound
  6.         container_name: unbound
  7.         restart: unless-stopped
  8.         volumes:
  9.            - /srv/docker/unbound/data:/etc/unbound/custom.conf.d
  10.         ports:
  11.            - 53:53/tcp
  12.             - 53:53/udp
  13.         cap_add:
  14.          - NET_ADMIN        
  15.         networks:
  16.           vlan:
  17.             ipv4_address: 10.21.1.20
  18.  
  19. networks:
  20.   vlan:
  21.     driver: macvlan
  22.     driver_opts:
  23.       parent: eth0
  24.     ipam:
  25.       config:
  26.         - subnet: "10.21.1.0/24"
  27.           ip_range: "10.21.1.20/32"
  28.           gateway: "10.21.1.1"
Advertisement
Add Comment
Please, Sign In to add comment