master
Amir Hossein Moghiseh 2021-12-30 14:42:34 +03:30
commit 968c50f089
1 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,62 @@
version: "3.7"
networks:
mother:
external: true
services:
dns:
image: registry.vnfco.ir/library/ameersbn/bind:9.16.1-20200524
deploy:
placement:
constraints: [node.role == manager]
update_config:
parallelism: 1
delay: 10s
order: start-first
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
volumes:
- /volume/dns:/data
environment:
- ROOT_PASSWORD=9197279882
- WEBMIN_INIT_SSL_ENABLED=false
ports:
- "10000:10000/tcp"
- "53:53/tcp"
networks:
- mother
# nginx:
# image: registry.vnfco.ir/library/ameersbn/bind:9.16.1-20200524
# deploy:
# placement:
# constraints:
# - node.label.master==true
# update_config:
# parallelism: 1
# delay: 10s
# order: start-stop
# restart_policy:
# condition: any
# delay: 5s
# max_attempts: 3
# window: 120s
# volumes:
# - /volume/dns:/data
# environment:
# - ROOT_PASSWORD=9197279882
# ports:
# - "10000:10000/tcp"
# - "53:53/tcp"
# - "53:53/udp"
# networks:
# - mother