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