Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
wwt142 committed Jan 23, 2019
1 parent 208dc30 commit 6ebffbd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ services:
web:
image: nginx:alpine
volumes:
- "./code:/var/www/demo"
- "./etc/nginx/nginx.conf:/etc/nginx/nginx.conf"
- "${WEB_CODE_DIR}:/var/www/code"
- "./logs/nginx:/etc/nginx/logs"
Expand All @@ -23,6 +24,7 @@ services:
volumes:
- "./etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini"
- "${WEB_CODE_DIR}:/var/www/code"
- "./code:/var/www/demo"
php5:
build: ./php5
restart: always
Expand Down
2 changes: 1 addition & 1 deletion etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ http {
index index.php index.html;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /var/www/code;
root /var/www/demo;

location ~ \.php$ {
try_files $uri =404;
Expand Down
6 changes: 3 additions & 3 deletions php5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN curl -L -o /tmp/redis.tar.gz https://github.com/phpredis/phpredis/archive/$P
&& mkdir -p /usr/src/php/ext \
&& mv phpredis-$PHPREDIS_VERSION /usr/src/php/ext/redis \
&& docker-php-ext-install redis \
&& rm -rf /usr/src/php
&& docker-php-ext-install mysqli
&& docker-php-ext-enable mysqli
&& rm -rf /usr/src/php \
&& docker-php-ext-install mysqli \
&& docker-php-ext-enable mysqli \
&& docker-php-ext-install pdo pdo_mysql

0 comments on commit 6ebffbd

Please sign in to comment.