version: "3.8" services: auth: image: jscorptech/taxi-auth:3 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