update the logs section

This commit is contained in:
Mahmoud Zalt 2016-05-18 07:56:12 +03:00
parent 16a1041ef5
commit 2c05c87400
2 changed files with 11 additions and 6 deletions

View File

@ -374,7 +374,7 @@ DB_HOST=xxx.xxx.xxx.xxx
Optionally you can define the server name in the nginx config file, like this: Optionally you can define the server name in the nginx config file, like this:
``` ```conf
server_name laravel.dev; server_name laravel.dev;
``` ```
@ -384,7 +384,14 @@ server_name laravel.dev;
<br> <br>
<a name="View-the-Log-files"></a> <a name="View-the-Log-files"></a>
#### View the Log files #### View the Log files
The Log files are stored in the `docker/logs` directory. The Nginx Log file is stored in the `logs/nginx` directory.
However to view the logs of all the other containers (MySQL, PHP-FPM,...) you can run this:
```bash
docker logs {container-id}
```

View File

@ -10,8 +10,6 @@ services:
dockerfile: Dockerfile-70 dockerfile: Dockerfile-70
volumes_from: volumes_from:
- application - application
volumes:
- ./logs/php/:/usr/local/var/log
expose: expose:
- "9000" - "9000"
@ -126,7 +124,7 @@ services:
links: links:
- php-fpm - php-fpm
### Beanstalkd-Console Container ############################ ### Beanstalkd Console Container ############################
beanstalkd-console: beanstalkd-console:
build: ./beanstalkd-console build: ./beanstalkd-console
@ -135,7 +133,7 @@ services:
links: links:
- beanstalkd - beanstalkd
### Workspace Container ##################################### ### Workspace Utilities Container ###########################
workspace: workspace:
build: ./workspace build: ./workspace