Installation de Redis.

This commit is contained in:
2026-05-28 08:13:43 +02:00
parent 559e71abb7
commit 85bc2ced1b
4 changed files with 22 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
services:
redis:
restart: unless-stopped
container_name: ${CONTAINER_PREFIX}_redis
image: ${REDIS_IMAGE}
ports:
- ${REDIS_PORT}
+1
View File
@@ -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:
+6
View File
@@ -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/*