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