File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
FROM php:7.2-fpm-alpine
2
2
3
- WORKDIR /var/www
3
+ WORKDIR /var/www/html
4
4
5
5
RUN docker-php-ext-install pdo pdo_mysql
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ services:
10
10
ports :
11
11
- " 8080:80"
12
12
volumes :
13
- - ./src:/var/www
13
+ - ./src:/var/www/html
14
14
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
15
15
depends_on :
16
16
- php
@@ -41,7 +41,7 @@ services:
41
41
dockerfile : Dockerfile
42
42
container_name : php
43
43
volumes :
44
- - ./src:/var/www
44
+ - ./src:/var/www/html
45
45
ports :
46
46
- " 9000:9000"
47
47
networks :
Original file line number Diff line number Diff line change 4
4
server_name localhost;
5
5
error_log /var/log/nginx/error.log;
6
6
access_log /var/log/nginx/access.log;
7
- root /var/www/public;
7
+ root /var/www/html/ public;
8
8
9
9
location / {
10
10
try_files $uri $uri/ /index.php?$query_string;
You can’t perform that action at this time.
0 commit comments