From 2dd06aee6b1fa1df4ab38530a254b9ba7ad7f6ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Pailharey?= <rpailharey@grandlyon.com>
Date: Mon, 10 Oct 2022 15:48:30 +0200
Subject: [PATCH] refactor: updated local dev conf

---
 .gitignore                 | 5 +++--
 docker-compose.local.yml   | 8 ++++----
 mnt/configs/tokenskey.json | 3 +++
 3 files changed, 10 insertions(+), 6 deletions(-)
 create mode 100644 mnt/configs/tokenskey.json

diff --git a/.gitignore b/.gitignore
index b4122432..386cb382 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,7 +10,7 @@
 /coverage
 # production
 /build
-/image-lib
+/mnt/image-lib
 # misc
 .DS_Store
 /.env
@@ -19,7 +19,8 @@
 .env.test.local
 .env.production.local
 meili_data
+db_data
 
 npm-debug.log*
 yarn-debug.log*
-yarn-error.log*
\ No newline at end of file
+yarn-error.log*
diff --git a/docker-compose.local.yml b/docker-compose.local.yml
index eb54fa96..dff40782 100644
--- a/docker-compose.local.yml
+++ b/docker-compose.local.yml
@@ -17,6 +17,8 @@ services:
 
   database-agent:
     image: mysql:5
+    volumes:
+      - ./db_data:/var/lib/mysql
     ports:
       - 3306:3306
     environment:
@@ -29,7 +31,7 @@ services:
       retries: 60
 
   meilisearch:
-    image: getmeili/meilisearch:v0.27.2
+    image: getmeili/meilisearch:v0.28.1
     healthcheck:
       test: ['CMD', 'curl', '-f', 'http://0.0.0.0:7700']
       interval: 10s
@@ -61,9 +63,7 @@ services:
         condition: service_healthy
     restart: unless-stopped
     volumes:
-      - /etc/localtime:/etc/localtime:ro
-      - ./configs:/app/configs
-      - ./${IMAGE_FOLDER}:/app/${IMAGE_FOLDER}
+      - ./mnt:/app/mnt
     ports:
       - ${HTTPS_PORT}:${HTTPS_PORT}
       - 8090:8090
diff --git a/mnt/configs/tokenskey.json b/mnt/configs/tokenskey.json
new file mode 100644
index 00000000..4ac2c4c1
--- /dev/null
+++ b/mnt/configs/tokenskey.json
@@ -0,0 +1,3 @@
+{
+  "Key": "F+gSLqJL7zZynkJYp/fd2jI6t3TolYGRt9bjO7mMgQc="
+}
-- 
GitLab