From 2c05c87400ad924d65e313c6d744966601fdd51e Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Wed, 18 May 2016 07:56:12 +0300 Subject: [PATCH] update the logs section --- README.md | 11 +++++++++-- docker-compose.yml | 6 ++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a12fb8d..26d7b04 100644 --- a/README.md +++ b/README.md @@ -374,7 +374,7 @@ DB_HOST=xxx.xxx.xxx.xxx Optionally you can define the server name in the nginx config file, like this: -``` +```conf server_name laravel.dev; ``` @@ -384,7 +384,14 @@ server_name laravel.dev;
#### 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} +``` + diff --git a/docker-compose.yml b/docker-compose.yml index b0d7265..bc7ae53 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,8 +10,6 @@ services: dockerfile: Dockerfile-70 volumes_from: - application - volumes: - - ./logs/php/:/usr/local/var/log expose: - "9000" @@ -126,7 +124,7 @@ services: links: - php-fpm -### Beanstalkd-Console Container ############################ +### Beanstalkd Console Container ############################ beanstalkd-console: build: ./beanstalkd-console @@ -135,7 +133,7 @@ services: links: - beanstalkd -### Workspace Container ##################################### +### Workspace Utilities Container ########################### workspace: build: ./workspace