Files
auth/stack.yaml
A'zamov Samandar 77e9df5fb2
Some checks failed
Deploy to Production / build-and-deploy (push) Failing after 1m19s
fix typo
2025-11-05 16:44:12 +05:00

48 lines
969 B
YAML

version: "3.8"
services:
auth:
image: jscorptech/taxi-auth:2
env_file:
- .env
networks:
- taxi
ports:
- mode: ingress
targer: 8000
published: ${PORT:?Enviromentda PORT topilmadi}
protocol: tcp
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