summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ca44de85a..194ab3eeb 100644
--- a/Makefile
+++ b/Makefile
@@ -131,6 +131,14 @@ ifeq ($(BUILD_ENTERPRISE_READY),true)
echo restarting mattermost-elasticsearch; \
docker start mattermost-elasticsearch> /dev/null; \
fi
+
+ @if [ $(shell docker ps -a | grep -ci mattermost-redis) -eq 0 ]; then \
+ echo starting mattermost-redis; \
+ docker run --name mattermost-redis -p 6379:6379 -d redis > /dev/null; \
+ elif [ $(shell docker ps | grep -ci mattermost-redis) -eq 0 ]; then \
+ echo restarting mattermost-redis; \
+ docker start mattermost-redis > /dev/null; \
+ fi
endif
stop-docker: