瀏覽代碼

Adding compose file to restart service on failure

Rodrigo Asencio 4 年之前
父節點
當前提交
ad40ab198b
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      backend/docker-compose.yml

+ 3 - 0
backend/docker-compose.yml

@@ -63,6 +63,7 @@ services:
     image: "hub.botprotec.com/botpro/botpro-backend-rq-worker:${VERSION_TAG}"
     networks:
       - botpronet
+    restart: unless-stopped
   web2py-rq-worker-low:
     depends_on:
       - "db"
@@ -84,6 +85,7 @@ services:
     image: "hub.botprotec.com/botpro/botpro-backend-rq-worker:${VERSION_TAG}"
     networks:
       - botpronet
+    restart: unless-stopped
   web2py-worker:
     depends_on:
       - "db"
@@ -100,6 +102,7 @@ services:
     image: "hub.botprotec.com/botpro/botpro-backend-w2p-worker:${VERSION_TAG}"
     networks:
       - botpronet
+    restart: unless-stopped
 volumes:
   web-migrations:
   db-data: