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

+ 10 - 8
docker-compose.yml

@@ -8,10 +8,11 @@ services:
       dockerfile: ./bot/Dockerfile
       args:
         OPENCV_VERSION: 3.4
-    restart_policy:
-      condition: any
-      delay: 5s
-      window: 120s
+    deploy:
+      restart_policy:
+        condition: any
+        delay: 5s
+        window: 120s
     depends_on:
       - db
     env_file: 
@@ -35,10 +36,11 @@ services:
     build:
       context: ./
       dockerfile: ./web/Dockerfile
-    restart_policy:
-      condition: any
-      delay: 5s
-      window: 120s
+    deploy:
+      restart_policy:
+        condition: any
+        delay: 5s
+        window: 120s
     depends_on:
       - db
     env_file: