diff --git a/.env_default b/.env_default
index 10c973bf65d24cf5046855957c911bfebe745cad..1cfb55f4f8e4a45c2831bf76cda7422df13e80ec 100644
--- a/.env_default
+++ b/.env_default
@@ -36,6 +36,8 @@ DATABASE_URL="mysql://rekallfrwsmember:sm4SyZVPu6wpjZfg@mysql:3306/rekallfrwsmem
 # for development purposes
 # docker-compose.yml:dev.yml
 COMPOSE_FILE=docker-compose.yml
+# Set to always for prod
+RESTART=on-failure
 # local for development or test, prod for production
 ENV=local
 # error, notice, info or debug
@@ -70,4 +72,4 @@ LEGACY_EXTERNAL_PREFIX=/legacy
 
 MEMBER_URL_EXTERNAL=http://localhost:8081/
 FRONT_URL_EXTERNAL=http://localhost:8081/
-LEGACY_PROJECT_DELETION_ENABLED=false
\ No newline at end of file
+LEGACY_PROJECT_DELETION_ENABLED=false
diff --git a/docker-compose.yml b/docker-compose.yml
index d6986916d29d0c613018eef486acdb57d2870dd2..dcc4125109c76ca4721a485893486974aa30a125 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -11,6 +11,7 @@ services:
     volumes:
       - "./mysql:/var/lib/mysql:rw"
       - "./docker/mysql/init_db_d:/docker-entrypoint-initdb.d"
+    restart: ${RESTART}
   memorekall-member:
     build: ./docker/symfony
     depends_on:
@@ -25,6 +26,7 @@ services:
     networks:
       - default
       - legacy
+    restart: ${RESTART}
 
   legacy:
     build: ./docker/legacy
@@ -40,5 +42,6 @@ services:
       - ${LEGACY_SRC_SHARED}:/sites/memorekall/www/web_legacy/shared:ro
     networks:
       - legacy
+    restart: ${RESTART}
 networks:
   legacy: