This commit is contained in:
42
stack.yaml
Normal file
42
stack.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
auth:
|
||||
image: jscorptech/taxi-auth:latest
|
||||
env_file:
|
||||
- .env
|
||||
networks:
|
||||
- taxi
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: any
|
||||
update_config:
|
||||
parallelism: 1
|
||||
order: start-first
|
||||
failure_action: rollback
|
||||
monitor: 30s
|
||||
delay: 30s
|
||||
max_failure_ratio: 0.2
|
||||
resources:
|
||||
limits:
|
||||
cpus: '3'
|
||||
memory: '4096M'
|
||||
# healthcheck:
|
||||
# test: ["CMD-SHELL", "curl -f http://localhost:8000/health/ || exit 1"]
|
||||
# interval: 15s
|
||||
# timeout: 15s
|
||||
# retries: 5
|
||||
# start_period: 30s
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "50m"
|
||||
max-file: "5"
|
||||
|
||||
networks:
|
||||
taxi:
|
||||
driver: overlay
|
||||
attachable: true
|
||||
external: true
|
||||
Reference in New Issue
Block a user