Browse Source

Update restart policy

ghorsington 4 years ago
parent
commit
c10d6299a3
1 changed files with 8 additions and 2 deletions
  1. 8 2
      docker-compose.yml

+ 8 - 2
docker-compose.yml

@@ -8,7 +8,10 @@ services:
       dockerfile: ./bot/Dockerfile
       args:
         OPENCV_VERSION: 3.4
-    restart: on-failure
+    restart_policy:
+      condition: any
+      delay: 5s
+      window: 120s
     depends_on:
       - db
     env_file: 
@@ -32,7 +35,10 @@ services:
     build:
       context: ./
       dockerfile: ./web/Dockerfile
-    restart: on-failure
+    restart_policy:
+      condition: any
+      delay: 5s
+      window: 120s
     depends_on:
       - db
     env_file: