version: '3.7' services: # --- NGINX --- nginx: image: nginx:latest ports: - '80:80' - '443:443' deploy: replicas: 4 update_config: parallelism: 2 order: start-first failure_action: rollback delay: 10s rollback_config: parallelism: 0 order: stop-first restart_policy: condition: any delay: 5s max_attempts: 3 window: 120s healthcheck: test: ["CMD", "service", "nginx", "status"] configs: - source: nginx_conf target: /etc/nginx/nginx.conf - source: nginx_static target: /var/www/default/index.html configs: nginx_conf: file: ../configs/node.conf nginx_static: file: ../content/index.html