Skip to content

Commit

Permalink
Experiment on Redis-NG Storage without KEYS
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Kämmerling <[email protected]>
  • Loading branch information
LKaemmerling committed Nov 28, 2022
1 parent d10c3be commit 768a06b
Show file tree
Hide file tree
Showing 13 changed files with 1,093 additions and 29 deletions.
53 changes: 27 additions & 26 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
nginx:
build: nginx/
links:
- php-fpm
ports:
- 8080:80
services:
nginx:
build: nginx/
links:
- php-fpm
ports:
- 8080:80

php-fpm:
build: php-fpm/
volumes:
- .:/var/www/html
links:
- redis
environment:
- REDIS_HOST=redis
php-fpm:
build: php-fpm/
volumes:
- .:/var/www/html
links:
- redis
environment:
- REDIS_HOST=redis

redis:
image: redis
ports:
redis:
image: redis
ports:
- 6379:6379

phpunit:
build: php-fpm/
volumes:
- .:/var/www/html
links:
- redis
- nginx
environment:
- REDIS_HOST=redis
phpunit:
build: php-fpm/
volumes:
- .:/var/www/html
links:
- redis
- nginx
environment:
- REDIS_HOST=redis
6 changes: 3 additions & 3 deletions php-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM php:7.4-fpm
FROM php:8.1-fpm

RUN pecl install redis-5.3.1 && docker-php-ext-enable redis
RUN pecl install apcu-5.1.19 && docker-php-ext-enable apcu
RUN pecl install redis && docker-php-ext-enable redis
RUN pecl install apcu && docker-php-ext-enable apcu

COPY www.conf /usr/local/etc/php-fpm.d/
COPY docker-php-ext-apcu-cli.ini /usr/local/etc/php/conf.d/
Loading

0 comments on commit 768a06b

Please sign in to comment.