From 31cb8ad545e89ea555980be215b1bfb8ab87eded Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Sat, 31 May 2025 12:54:54 +0300 Subject: [PATCH] fix --- .deploy-nginx/deploy-dev.yaml | 29 +++++++++++++++++++++++++++++ .deploy-nginx/deploy-prod.yaml | 29 +++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .deploy-nginx/deploy-dev.yaml create mode 100644 .deploy-nginx/deploy-prod.yaml diff --git a/.deploy-nginx/deploy-dev.yaml b/.deploy-nginx/deploy-dev.yaml new file mode 100644 index 0000000..d481934 --- /dev/null +++ b/.deploy-nginx/deploy-dev.yaml @@ -0,0 +1,29 @@ +version: "3.6" + +services: + + nginx: + image: mathwave/sprint-repo:sprint-infra-nginx-dev + networks: + - common-infra-nginx-development + ports: + - published: 80 + target: 80 + mode: host + - published: 443 + target: 443 + mode: host + deploy: + mode: replicated + replicas: 1 + restart_policy: + condition: any + placement: + constraints: [node.labels.stage == development] + update_config: + parallelism: 1 + # order: stop-first + +networks: + common-infra-nginx-development: + external: true diff --git a/.deploy-nginx/deploy-prod.yaml b/.deploy-nginx/deploy-prod.yaml new file mode 100644 index 0000000..79c382b --- /dev/null +++ b/.deploy-nginx/deploy-prod.yaml @@ -0,0 +1,29 @@ +version: "3.6" + +services: + + nginx: + image: mathwave/sprint-repo:sprint-infra-nginx-prod + networks: + - common-infra-nginx + ports: + - published: 80 + target: 80 + mode: host + - published: 443 + target: 443 + mode: host + deploy: + mode: replicated + replicas: 1 + restart_policy: + condition: any + placement: + constraints: [node.labels.stage == production] + update_config: + parallelism: 1 + # order: start-first + +networks: + common-infra-nginx: + external: true \ No newline at end of file