Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f6169e0

Browse files
HRaval2HRaval2
HRaval2
authored and
HRaval2
committedDec 11, 2019
changed the configuration
1 parent aa4f46c commit f6169e0

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed
 

‎docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
dockerfile: app.dockerfile
99
working_dir: /var/www
1010
volumes:
11-
- ./:/var/www
11+
- ./public:/var/www
1212
- ./php.ini:/usr/local/etc/php/php.ini
1313
environment:
1414
- "DB_PORT=3306"

‎public/index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
echo "Hello!";
3+
?>

‎public/phpinfo.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
phpinfo();
3+
?>

‎vhost.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
server {
22
listen 80;
33
index index.php index.html;
4-
root /var/www/public;
4+
root /var/www/;
55

66
location / {
77
try_files $uri /index.php?$args;

0 commit comments

Comments
 (0)
Please sign in to comment.