Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Commit

Permalink
fix root dir in nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
lucmski committed Sep 23, 2019
1 parent d113797 commit 949c855
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions docker-compose.yml
@@ -1,16 +1,18 @@
---
version: '3.6'
services:

php:
image: php:7.2-fpm-alpine3.8
image: php:7.2-fpm-alpine3.10
volumes:
- ./code:/code
- ./frontend:/frontend

web:
image: nginx:1-alpine
ports:
- "8080:80"
- "8080:80"
links:
- php
- php
volumes:
- ./code:/code
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./frontend:/frontend
- ./nginx.conf:/etc/nginx/conf.d/default.conf
2 changes: 1 addition & 1 deletion nginx.conf
Expand Up @@ -2,7 +2,7 @@ server {
listen 80 default_server;
server_name _;
index index.php index.html;
root /code/;
root /frontend/;

error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
Expand Down

0 comments on commit 949c855

Please sign in to comment.