| @@ -8,7 +8,7 @@ services: | |||
| ports: | |||
| - '9000:9000' | |||
| volumes: | |||
| - ./public:/var/www/html | |||
| - ./site:/var/www/html | |||
| nginx: | |||
| container_name: nginx | |||
| @@ -16,7 +16,7 @@ services: | |||
| ports: | |||
| - '8080:80' | |||
| volumes: | |||
| - ./public:/var/www/html | |||
| - ./site:/var/www/html | |||
| - ./nginx/default.conf:/etc/nginx/conf.d/default.conf | |||
| depends_on: | |||
| - php | |||
| @@ -3,7 +3,7 @@ server { | |||
| listen 80; | |||
| index index.php; | |||
| server_name localhost; | |||
| root /var/www/html; | |||
| root /var/www/html/public; | |||
| error_log /var/log/nginx/project_error.log; | |||
| access_log /var/log/nginx/project_access.log; | |||