bind.yml 610 B

1234567891011121314151617181920212223242526272829303132333435
  1. version: "3.3"
  2. services:
  3. bind:
  4. image: ${REGISTRY:-registry.sdsys.ru}/bind:${BINDTAG:-latest}
  5. ports:
  6. - 53:53
  7. - 53:53/UDP
  8. deploy:
  9. replicas: 1
  10. resources:
  11. limits:
  12. memory: 300M
  13. reservations:
  14. memory: 50M
  15. volumes:
  16. - bind:/var/lib/bind
  17. configs:
  18. - source: named.conf
  19. target: /etc/bind/named.conf
  20. volumes:
  21. bind:
  22. driver: local
  23. driver_opts:
  24. device: "/dev/disk/by-label/bind"
  25. type: "xfs"
  26. configs:
  27. named.conf:
  28. file: ./config/named.conf
  29. networks:
  30. proxy:
  31. external: true