File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
docker/php7-imagick-httpd Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 6
6
- Apache 2.4.6
7
7
- PHP 7.1.8
8
8
- MySQL 5.7
9
-
9
+ - Redis 4.0.1 (latest)
10
10
11
11
## Deps
12
12
@@ -28,6 +28,7 @@ $ docker-compose up -d
28
28
$ vim /etc/hosts
29
29
127.0.0.1 web.local
30
30
127.0.0.1 mysql.local
31
+ 127.0.0.1 redis.local
31
32
```
32
33
33
34
open ` http://web.local `
Original file line number Diff line number Diff line change @@ -7,6 +7,14 @@ services:
7
7
- " 80:80"
8
8
volumes :
9
9
- /var/run/docker.sock:/tmp/docker.sock:ro
10
+ redis :
11
+ container_name : " redis"
12
+ image : redis:latest
13
+ ports :
14
+ - " 6379:6379"
15
+ tty : true
16
+ environment :
17
+ - VIRTUAL_HOST=redis.local
10
18
mysql :
11
19
container_name : " mysql"
12
20
build : ./docker/mysql/
@@ -26,5 +34,6 @@ services:
26
34
- ./htdoc:/var/www/html
27
35
links :
28
36
- mysql
37
+ - redis
29
38
environment :
30
39
- VIRTUAL_HOST=web.local
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ RUN yum update && yum install -y wget grep git ssh bash
7
7
# install php7
8
8
RUN yum install -y epel-release && \
9
9
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm && \
10
- yum -y install --enablerepo=remi-php71 php php-fpm php-mcrypt php-cli php-common php-devel php-gd php-mbstring php-mysqlnd php-opcache php-pdo php-pear php-pecl-apcu php-pecl-zip php-process php-xml php-intl && \
10
+ yum -y install --enablerepo=remi-php71 php php-fpm php-mcrypt php-cli php-common php-devel php-gd php-mbstring php-mysqlnd php-opcache php-pdo php-pear php-pecl-apcu php-pecl-zip php-process php-xml php-intl php-redis && \
11
11
yum clean all
12
12
13
13
# install httpd
@@ -24,6 +24,9 @@ RUN yum --enablerepo=remi install -y ImageMagick7 ImageMagick7-devel && \
24
24
echo "extension=imagick.so" >> /etc/php.ini && \
25
25
echo "pdo_mysql.default_socket=/var/run/mysqld/mysqld.sock" >> /etc/php.ini
26
26
27
+ # set up configure for redis
28
+ RUN echo "extension=redis.so" >> /etc/php.ini
29
+
27
30
# install composer
28
31
RUN curl -sS https://getcomposer.org/installer | php && \
29
32
mv composer.phar /usr/bin/composer
You can’t perform that action at this time.
0 commit comments