Skip to content

Commit cc0ba6d

Browse files
authored
Experiment on Redis-NG Storage without KEYS (#99)
1 parent d10c3be commit cc0ba6d

14 files changed

+1087
-29
lines changed

docker-compose.yml

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
1-
nginx:
2-
build: nginx/
3-
links:
4-
- php-fpm
5-
ports:
6-
- 8080:80
1+
services:
2+
nginx:
3+
build: nginx/
4+
links:
5+
- php-fpm
6+
ports:
7+
- 8080:80
78

8-
php-fpm:
9-
build: php-fpm/
10-
volumes:
11-
- .:/var/www/html
12-
links:
13-
- redis
14-
environment:
15-
- REDIS_HOST=redis
9+
php-fpm:
10+
build: php-fpm/
11+
volumes:
12+
- .:/var/www/html
13+
links:
14+
- redis
15+
environment:
16+
- REDIS_HOST=redis
1617

17-
redis:
18-
image: redis
19-
ports:
18+
redis:
19+
image: redis
20+
ports:
2021
- 6379:6379
2122

22-
phpunit:
23-
build: php-fpm/
24-
volumes:
25-
- .:/var/www/html
26-
links:
27-
- redis
28-
- nginx
29-
environment:
30-
- REDIS_HOST=redis
23+
phpunit:
24+
build: php-fpm/
25+
volumes:
26+
- .:/var/www/html
27+
links:
28+
- redis
29+
- nginx
30+
environment:
31+
- REDIS_HOST=redis

php-fpm/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM php:7.4-fpm
1+
FROM php:8.1-fpm
22

3-
RUN pecl install redis-5.3.1 && docker-php-ext-enable redis
4-
RUN pecl install apcu-5.1.19 && docker-php-ext-enable apcu
3+
RUN pecl install redis && docker-php-ext-enable redis
4+
RUN pecl install apcu && docker-php-ext-enable apcu
55

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

0 commit comments

Comments
 (0)