Skip to content

Commit

Permalink
Add DOCKER_REDIS_IMAGE environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
duboiss committed Sep 21, 2021
1 parent b34b62c commit 23a9bfe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
DOCKER_PHP_IMAGE=7.4
DOCKER_MYSQL_IMAGE=latest
DOCKER_ELASTICSEARCH_IMAGE=7.6
DOCKER_REDIS_IMAGE=6.2

#COMPOSER_DOWNGRADE=1

Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export PROJECT_LOCATION := $(shell echo ${MAKEFILE_DIRECTORY})
export DOCKER_PHP_IMAGE := $(shell grep DOCKER_PHP_IMAGE ${MAKEFILE_DIRECTORY}docker/local/.env | awk -F '=' '{print $$NF}')
export DOCKER_MYSQL_IMAGE := $(shell grep DOCKER_MYSQL_IMAGE ${MAKEFILE_DIRECTORY}docker/local/.env | awk -F '=' '{print $$NF}')
export DOCKER_ELASTICSEARCH_IMAGE := $(shell grep DOCKER_ELASTICSEARCH_IMAGE ${MAKEFILE_DIRECTORY}docker/local/.env | awk -F '=' '{print $$NF}')
export DOCKER_REDIS_IMAGE := $(shell grep DOCKER_REDIS_IMAGE ${MAKEFILE_DIRECTORY}docker/local/.env | awk -F '=' '{print $$NF}')

##
## ----------------------------------------------------------------------------
Expand Down Expand Up @@ -73,6 +74,7 @@ root: ## Display the commands to set up the environment for an advanced usage
@echo "export DOCKER_PHP_IMAGE=${DOCKER_PHP_IMAGE}"
@echo "export DOCKER_MYSQL_IMAGE=${DOCKER_MYSQL_IMAGE}"
@echo "export DOCKER_ELASTICSEARCH_IMAGE=${DOCKER_ELASTICSEARCH_IMAGE}"
@echo "export DOCKER_REDIS_IMAGE=${DOCKER_REDIS_IMAGE}"
@echo ""
@echo "# Run this command to configure your shell:"
@echo "# eval \$$(make root)"
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ services:
tty: true

redis:
image: redis:3.2-alpine
image: redis:${DOCKER_REDIS_IMAGE}-alpine
env_file: ${PROJECT_LOCATION}/docker/local/.env
volumes:
- redis:/data
Expand Down

0 comments on commit 23a9bfe

Please sign in to comment.