]> Untitled Git - proxy.git/commitdiff
Added restart policy
authorClifton Palmer <clifton.james.palmer@protonmail.com>
Mon, 20 Sep 2021 18:43:44 +0000 (13:43 -0500)
committerClifton Palmer <clifton.james.palmer@protonmail.com>
Mon, 20 Sep 2021 18:43:44 +0000 (13:43 -0500)
docker-compose.yml

index 36f1ea75a4b7b9fc15b1e7aea74917e374bb1c8c..b646b690a19bca1920ba599e808f677cbdb02b7d 100644 (file)
@@ -6,6 +6,13 @@ networks:
 services:
     nginx:
         image: nginx:1.17
+        restart: on-failure
+        deploy:
+            restart_policy:
+                condition: on-failure
+                delay: 5s
+                max_attempts: 5
+                window: 10s
         volumes:
         - ./nginx.conf:/etc/nginx/nginx.conf
         environment: