feat(devops): stack file created
This commit is contained in:
38
stack.yaml
Normal file
38
stack.yaml
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
notification:
|
||||||
|
image: jscorptech/taxi-notification:latest
|
||||||
|
networks:
|
||||||
|
- taxi
|
||||||
|
ports:
|
||||||
|
- mode: ingress
|
||||||
|
target: 8000
|
||||||
|
published: ${PORT:?PORT not found}
|
||||||
|
protocol: tcp
|
||||||
|
deploy:
|
||||||
|
mode: replicated
|
||||||
|
restart_policy:
|
||||||
|
condition: any
|
||||||
|
update_config:
|
||||||
|
parallelism: 1
|
||||||
|
order: start-first
|
||||||
|
failure-action: rollback
|
||||||
|
monitor: 10s
|
||||||
|
delay: 10s
|
||||||
|
max_failure_ration: 0.2
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: "2"
|
||||||
|
memory: 1024M
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: 10
|
||||||
|
|
||||||
|
networks:
|
||||||
|
taxi:
|
||||||
|
driver: overlay
|
||||||
|
external: true
|
||||||
|
attachable: true
|
||||||
Reference in New Issue
Block a user