Installation de Redis.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
services:
|
||||
|
||||
redis:
|
||||
restart: unless-stopped
|
||||
container_name: ${CONTAINER_PREFIX}_redis
|
||||
image: ${REDIS_IMAGE}
|
||||
ports:
|
||||
- ${REDIS_PORT}
|
||||
@@ -33,6 +33,7 @@ services:
|
||||
args:
|
||||
SERVER_PHP_IMAGE: ${SERVER_PHP_IMAGE}
|
||||
WITH_MEMCACHED: ${WITH_MEMCACHED}
|
||||
WITH_REDIS: ${WITH_REDIS}
|
||||
dockerfile: ${PWD}/docker/server-php.dockerfile
|
||||
|
||||
labels:
|
||||
|
||||
@@ -45,6 +45,12 @@ RUN if [ "$WITH_MEMCACHED" = "true" ]; then \
|
||||
pie install php-memcached/php-memcached; \
|
||||
fi
|
||||
|
||||
# Installation de Redis
|
||||
ARG WITH_REDIS=false
|
||||
RUN if [ "$WITH_REDIS" = "true" ]; then \
|
||||
pie install phpredis/phpredis; \
|
||||
fi
|
||||
|
||||
RUN apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user