Skip to content

Commit 4e28ab4

Browse files
committed
Updates path from /var/www/ to /var/www/html
1 parent 7dd9baf commit 4e28ab4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM php:7.2-fpm-alpine
22

3-
WORKDIR /var/www
3+
WORKDIR /var/www/html
44

55
RUN docker-php-ext-install pdo pdo_mysql

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

nginx/default.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ server {
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;

0 commit comments

Comments
 (0)