Explorar el Código

Adding compose file to restart service on failure

Rodrigo Asencio hace 4 años
padre
commit
ad40ab198b
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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: