From 5efcaa0e59e620dca0f5cd36a82b411756ee7911 Mon Sep 17 00:00:00 2001
From: collabspace <admin@collabspace-app.com>
Date: Thu, 10 Aug 2023 22:48:46 +0200
Subject: [PATCH] Automatically restart container when crashing:wq

---
 docker-compose.prod.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml
index f65cf01..c8fa773 100644
--- a/docker-compose.prod.yml
+++ b/docker-compose.prod.yml
@@ -5,6 +5,7 @@ services:
     build:
       context: ./proxy
     container_name: cs_prod_proxy
+    restart: always
     ports:
       - 80:80
     networks:
@@ -18,6 +19,7 @@ services:
       context: ./backend
       target: production
     container_name: cs_prod_backend
+    restart: always
     ports:
       - 3000:80
     env_file:
@@ -32,6 +34,7 @@ services:
       context: ./frontend
       target: production
     container_name: cs_prod_frontend
+    restart: always
     ports:
       - 3001:80
     env_file:
@@ -44,6 +47,7 @@ services:
   mysql:
     image: mysql:8.0
     container_name: cs_prod_mysql
+    restart: always
     volumes:
       - mysql:/var/lib/mysql
     ports:
-- 
GitLab