fix
This commit is contained in:
parent
3a528cc7de
commit
31cb8ad545
29
.deploy-nginx/deploy-dev.yaml
Normal file
29
.deploy-nginx/deploy-dev.yaml
Normal file
@ -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
|
29
.deploy-nginx/deploy-prod.yaml
Normal file
29
.deploy-nginx/deploy-prod.yaml
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user