Repository: FORTH-ICS-INSPIRE/artemis (language: python)

Issue:
Small issue with redis not reading the configuration file correctly
**Describe the bug**
A clear and concise description of what the bug is.

**Affected Component(s)**
- [X] Back-End (Database, Microservices, Containers, etc)
- [ ] Front-End (Flask, API, etc)
- [ ] Docs
- [ ] Build System

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**System (please complete the following information):**
 - OS: [e.g. iOS]
 - Browser [e.g. chrome, safari]
 - Version [e.g. 22]

**Additional context**
Add any other context about the problem here.



Discussion / hints:
Block #557 

Fix patch:
diff --git a/artemis-chart/templates/redis-deployment.yaml b/artemis-chart/templates/redis-deployment.yaml
index 3f887a0de..cee6c79c3 100644
--- a/artemis-chart/templates/redis-deployment.yaml
+++ b/artemis-chart/templates/redis-deployment.yaml
@@ -22,6 +22,10 @@ spec:
       - name: redis
         image: {{ .image }}
         resources: {}
+        command:
+          - redis-server
+        args:
+          - /usr/local/etc/redis/redis.conf
         volumeMounts:
         - mountPath: /usr/local/etc/redis/redis.conf
           name: redis-configmap
diff --git a/backend-services/configs/redis.conf b/backend-services/configs/redis.conf
index 0b356df70..004b93d63 100644
--- a/backend-services/configs/redis.conf
+++ b/backend-services/configs/redis.conf
@@ -221,7 +221,7 @@ tcp-keepalive 300
 
 # By default Redis does not run as a daemon. Use 'yes' if you need it.
 # Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
-daemonize yes
+daemonize no
 
 # If you run Redis from upstart or systemd, Redis can interact with your
 # supervision tree. Options:
diff --git a/docker-compose.benchmark.yaml b/docker-compose.benchmark.yaml
index 7219faf46..2e3ea426f 100644
--- a/docker-compose.benchmark.yaml
+++ b/docker-compose.benchmark.yaml
@@ -387,6 +387,7 @@ services:
             - ${REDIS_PORT}
         volumes:
             - ./backend-services/redis/configs/redis.conf:/usr/local/etc/redis/redis.conf
+        command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
     rabbitmq:
         image: rabbitmq:3.8.3-management-alpine
         container_name: rabbitmq
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 620b8f3e8..e6b274216 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -372,6 +372,7 @@ services:
             - ${REDIS_PORT}
         volumes:
             - ./local_configs/backend/redis.conf:/usr/local/etc/redis/redis.conf
+        command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
     frontend:
         image: inspiregroup/artemis-tempfrontend:${SYSTEM_VERSION}
         build: ./frontend/
diff --git a/docs/changelog.md b/docs/changelog.md
index 6fa4612ec..c48618607 100644
--- a/docs/changelog.md
+++ b/docs/changelog.md
@@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - Replaced sets that are not supported by shared manager with lists
 - Removed unneeded read locks
 - Non-gracefull SIGKILL for taps in case graceful stop delays a lot
+- Redis configuration file input
 
 ### Removed
 - TBD (removed a feature)
diff --git a/docs/installsetup.md b/docs/installsetup.md
index d797ceb3a..0a0b5c4f8 100644
--- a/docs/installsetup.md
+++ b/docs/installsetup.md
@@ -111,6 +111,7 @@ detailing all variables used in the .env file used for ARTEMIS system setup (non
    mkdir -p local_configs/monitor && \
    mkdir -p local_configs/frontend && \
    cp -rn backend-services/configs/* local_configs/backend && \
+   cp backend-services/configs/redis.conf local_configs/backend/redis.conf && \
    cp -rn monitor-services/configs/* local_configs/monitor && \
    cp -rn frontend/webapp/configs/* local_configs/frontend
    ```
diff --git a/vagrant-vm/vagrant-docker-compose.yaml b/vagrant-vm/vagrant-docker-compose.yaml
index 4d9c881d9..f67905db1 100644
--- a/vagrant-vm/vagrant-docker-compose.yaml
+++ b/vagrant-vm/vagrant-docker-compose.yaml
@@ -345,6 +345,7 @@ services:
             - ${REDIS_PORT}
         volumes:
             - ./local_configs/backend-services/redis/redis.conf:/usr/local/etc/redis/redis.conf
+        command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
     frontend:
         image: inspiregroup/artemis-tempfrontend:${SYSTEM_VERSION}
         container_name: frontend


Test patch:
diff --git a/docker-compose.testautoconf.yaml b/docker-compose.testautoconf.yaml
index d5cb378d4..97d090228 100644
--- a/docker-compose.testautoconf.yaml
+++ b/docker-compose.testautoconf.yaml
@@ -402,6 +402,7 @@ services:
             - ${REDIS_PORT}
         volumes:
             - ./backend-services/redis/configs/redis.conf:/usr/local/etc/redis/redis.conf
+        command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
     rabbitmq:
         image: rabbitmq:3.8.3-management-alpine
         container_name: rabbitmq
diff --git a/docker-compose.testautoignore.yaml b/docker-compose.testautoignore.yaml
index 91695be17..b03eaf48b 100644
--- a/docker-compose.testautoignore.yaml
+++ b/docker-compose.testautoignore.yaml
@@ -402,6 +402,7 @@ services:
             - ${REDIS_PORT}
         volumes:
             - ./backend-services/redis/configs/redis.conf:/usr/local/etc/redis/redis.conf
+        command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
     rabbitmq:
         image: rabbitmq:3.8.3-management-alpine
         container_name: rabbitmq
diff --git a/docker-compose.testdetection.yaml b/docker-compose.testdetection.yaml
index cac9327db..a1766d404 100644
--- a/docker-compose.testdetection.yaml
+++ b/docker-compose.testdetection.yaml
@@ -402,6 +402,7 @@ services:
             - ${REDIS_PORT}
         volumes:
             - ./backend-services/redis/configs/redis.conf:/usr/local/etc/redis/redis.conf
+        command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
     rabbitmq:
         image: rabbitmq:3.8.3-management-alpine
         container_name: rabbitmq
diff --git a/docker-compose.testrpki.yaml b/docker-compose.testrpki.yaml
index 9aa6f325b..0b19218b2 100644
--- a/docker-compose.testrpki.yaml
+++ b/docker-compose.testrpki.yaml
@@ -402,6 +402,7 @@ services:
             - ${REDIS_PORT}
         volumes:
             - ./backend-services/redis/configs/redis.conf:/usr/local/etc/redis/redis.conf
+        command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
     rabbitmq:
         image: rabbitmq:3.8.3-management-alpine
         container_name: rabbitmq
diff --git a/other/docker-compose.testcafe.yaml b/other/docker-compose.testcafe.yaml
index 8c381e48e..99d611c95 100644
--- a/other/docker-compose.testcafe.yaml
+++ b/other/docker-compose.testcafe.yaml
@@ -344,6 +344,7 @@ services:
             - ${REDIS_PORT}
         volumes:
             - ./backend-services/redis/configs/redis.conf:/usr/local/etc/redis/redis.conf
+        command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
     frontend:
         image: artemis_frontend
         build: ./frontend/