From ac970b2c37b4239dc265b92ae56af04266907630 Mon Sep 17 00:00:00 2001 From: Benedikt Schmitz Date: Wed, 1 Mar 2017 17:27:46 +0100 Subject: [PATCH] [FEATURE] Add redis service Added redis service resolves #10 --- bin/conti | 1 + plugins/docker/install | 3 ++- templates/docker-compose.yml | 6 +++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/conti b/bin/conti index dc4961e..ee27663 100755 --- a/bin/conti +++ b/bin/conti @@ -30,6 +30,7 @@ export IMAGE_NGINX="${CONTI_IMAGE_NGINX:=zeroboh/nginx:1.11-alpine}" export IMAGE_PHP="${CONTI_IMAGE_PHP:=zeroboh/php:7.1-fpm-alpine}" export IMAGE_COMPOSER="${CONTI_IMAGE_COMPOSER:=composer/composer:1-php5-alpine}" export IMAGE_MAILCATCHER="${CONTI_IMAGE_MAILCATCHER:=zeroboh/mailcatcher:0.6-alpine}" +export IMAGE_REDIS="${CONTI_IMAGE_REDIS:=zeroboh/redis:3.2-alpine}" # Define some functions function module-exec { diff --git a/plugins/docker/install b/plugins/docker/install index 0f4e015..bafec5d 100644 --- a/plugins/docker/install +++ b/plugins/docker/install @@ -16,7 +16,8 @@ cat ${TEMPLATES}/docker-compose.yml | \ sed -e "s#{{ IMAGE_NGINX }}#${IMAGE_NGINX}#g" | \ sed -e "s#{{ IMAGE_PHP }}#${IMAGE_PHP}#g" | \ sed -e "s#{{ IMAGE_COMPOSER }}#${IMAGE_COMPOSER}#g" | \ - sed -e "s#{{ IMAGE_MAILCATCHER }}#${IMAGE_MAILCATCHER}#g" \ + sed -e "s#{{ IMAGE_MAILCATCHER }}#${IMAGE_MAILCATCHER}#g" | \ + sed -e "s#{{ IMAGE_REDIS }}#${IMAGE_REDIS}#g" \ > $(pwd)/docker-compose.yml cat ${TEMPLATES}/.env | \ diff --git a/templates/docker-compose.yml b/templates/docker-compose.yml index 979b895..44ec4ed 100644 --- a/templates/docker-compose.yml +++ b/templates/docker-compose.yml @@ -20,6 +20,7 @@ services: links: - mysql - mailcatcher + - redis volumes: - ${DATA_LOCATION}:/var/www/Web @@ -44,4 +45,7 @@ services: mailcatcher: image: {{ IMAGE_MAILCATCHER }} ports: - - 1080:1080 \ No newline at end of file + - 1080:1080 + + redis: + image: {{ IMAGE_REDIS }} \ No newline at end of file