From f9f443e95aa3e28eaaac64747352d4c2c3689ab0 Mon Sep 17 00:00:00 2001
From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com>
Date: Mon, 2 Aug 2021 17:31:15 +0200
Subject: [PATCH] fix(docker): cozy-stack for dev was crashing after reboot

---
 docker-compose.yml              | 2 +-
 docker/cozy-app-dev-with-app.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docker-compose.yml b/docker-compose.yml
index 4ee8a235e..31cbcaa2b 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -10,7 +10,7 @@ services:
     ports:
       - 8080:8080
       - 5984:5984
-      - 8025:825
+      - 8025:8025
     volumes:
       - ./build:/data/cozy-app/ecolyo
       - ./data:/usr/local/couchdb/data
diff --git a/docker/cozy-app-dev-with-app.sh b/docker/cozy-app-dev-with-app.sh
index 43386dc6e..b14d7c4bb 100644
--- a/docker/cozy-app-dev-with-app.sh
+++ b/docker/cozy-app-dev-with-app.sh
@@ -178,6 +178,7 @@ do_create_instances() {
 	set -e
 	if [ "${add_instance_ret}" = "0" ]; then
 		echo "ok"
+    do_install_app
 	else
 		exists_test=$(grep -i "already exists" <<< "${add_instance_val}" || echo "")
 		if [ -z "${exists_test}" ]; then
@@ -186,7 +187,6 @@ do_create_instances() {
 		fi
 		echo "ok (already created)"
 	fi
-  do_install_app
 }
 
 do_install_app() {
-- 
GitLab