commit 968c50f089b6fd10c173df16757d34ca971cfeb8 Author: امیرحسین مقیسه Date: Thu Dec 30 14:42:34 2021 +0330 OPS 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 + + + +