Skip to content
This repository has been archived by the owner on Sep 9, 2018. It is now read-only.

Commit

Permalink
[FEATURE] Add redis service
Browse files Browse the repository at this point in the history
Added redis service

resolves #10
  • Loading branch information
egobude committed Mar 1, 2017
1 parent 48d5355 commit ac970b2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions bin/conti
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion plugins/docker/install
Original file line number Diff line number Diff line change
Expand Up @@ -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 | \
Expand Down
6 changes: 5 additions & 1 deletion templates/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ services:
links:
- mysql
- mailcatcher
- redis
volumes:
- ${DATA_LOCATION}:/var/www/Web

Expand All @@ -44,4 +45,7 @@ services:
mailcatcher:
image: {{ IMAGE_MAILCATCHER }}
ports:
- 1080:1080
- 1080:1080

redis:
image: {{ IMAGE_REDIS }}

0 comments on commit ac970b2

Please sign in to comment.