Commit 4e28ab4e authored by Andrew Schmelyun's avatar Andrew Schmelyun
Browse files

Updates path from /var/www/ to /var/www/html

parent 7dd9bafb
FROM php:7.2-fpm-alpine
WORKDIR /var/www
WORKDIR /var/www/html
RUN docker-php-ext-install pdo pdo_mysql
......@@ -10,7 +10,7 @@ services:
ports:
- "8080:80"
volumes:
- ./src:/var/www
- ./src:/var/www/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
......@@ -41,7 +41,7 @@ services:
dockerfile: Dockerfile
container_name: php
volumes:
- ./src:/var/www
- ./src:/var/www/html
ports:
- "9000:9000"
networks:
......
......@@ -4,7 +4,7 @@ server {
server_name localhost;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /var/www/public;
root /var/www/html/public;
location / {
try_files $uri $uri/ /index.php?$query_string;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment