File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11FROM php:7.2-fpm-alpine
22
3- WORKDIR /var/www
3+ WORKDIR /var/www/html
44
55RUN docker-php-ext-install pdo pdo_mysql
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ services:
1010 ports :
1111 - " 8080:80"
1212 volumes :
13- - ./src:/var/www
13+ - ./src:/var/www/html
1414 - ./nginx/default.conf:/etc/nginx/conf.d/default.conf
1515 depends_on :
1616 - php
@@ -41,7 +41,7 @@ services:
4141 dockerfile : Dockerfile
4242 container_name : php
4343 volumes :
44- - ./src:/var/www
44+ - ./src:/var/www/html
4545 ports :
4646 - " 9000:9000"
4747 networks :
Original file line number Diff line number Diff line change 44 server_name localhost;
55 error_log /var/log/nginx/error.log;
66 access_log /var/log/nginx/access.log;
7- root /var/www/public;
7+ root /var/www/html/ public;
88
99 location / {
1010 try_files $uri $uri/ /index.php?$query_string;
You can’t perform that action at this time.
0 commit comments