From 968c50f089b6fd10c173df16757d34ca971cfeb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D8=A7=D9=85=DB=8C=D8=B1=D8=AD=D8=B3=DB=8C=D9=86=20=D9=85?= =?UTF-8?q?=D9=82=DB=8C=D8=B3=D9=87?= Date: Thu, 30 Dec 2021 14:42:34 +0330 Subject: [PATCH] OPS --- stacks/lvl1/stack.yml | 62 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 stacks/lvl1/stack.yml diff --git a/stacks/lvl1/stack.yml b/stacks/lvl1/stack.yml new file mode 100644 index 0000000..363f86d --- /dev/null +++ b/stacks/lvl1/stack.yml @@ -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 + + + +