feat(devops)
Some checks failed
Deploy to Production / build-and-deploy (push) Failing after 1m57s

This commit is contained in:
A'zamov Samandar
2025-11-05 16:36:21 +05:00
commit 425987e9d5
13 changed files with 418 additions and 0 deletions

42
stack.yaml Normal file
View 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