From e4f4de47e7b96fb5de4c2d7d656f3a033beabc1d Mon Sep 17 00:00:00 2001 From: Ary Widiantara Date: Wed, 9 Aug 2017 10:17:53 +0700 Subject: [PATCH] [UPDATE] change config redis from docker compose to env --- docker-compose.yml | 2 +- env-example | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 16a1aea..ba38624 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -338,7 +338,7 @@ services: volumes: - ${DATA_SAVE_PATH}/redis:/data ports: - - "6379:6379" + - "${REDIS_PORT}:6379" networks: - backend diff --git a/env-example b/env-example index be8b520..423e1ae 100644 --- a/env-example +++ b/env-example @@ -104,6 +104,10 @@ MYSQL_PORT=3306 MYSQL_ROOT_PASSWORD=root MYSQL_ENTRYPOINT_INITDB=./mysql/docker-entrypoint-initdb.d +### REDIS ############################################################################################################## + +REDIS_PORT=6379 + ### Percona ############################################################################################################ PERCONA_DATABASE=homestead