From d3d7c68195f9f3f0937ca769609cb06a8bdc8a68 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Fri, 13 Sep 2019 16:38:23 +0700 Subject: [PATCH] use separate log directories for client and server --- .gitignore | 1 + README.md | 8 ++++---- docker-compose.yml | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..333c1e9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +logs/ diff --git a/README.md b/README.md index 5b5efac..d80da9b 100644 --- a/README.md +++ b/README.md @@ -142,10 +142,10 @@ setup](https://github.com/h2o/h2o-qns). docker-compose up ``` - A mounted directory, `qnslogs`, is provided for recording logs from the - endpoints. This directory is created by docker-compose in the directory from - which it is run. Inside the docker container, the directory is available as - `/qnslogs`. + A mounted directory is provided for recording logs from the endpoints. + docker-compose creates a `logs/server` and `logs/client` directory from + the directory from which it is run. Inside the docker container, the + directory is available as `/logs`. ## Debugging and FAQs diff --git a/docker-compose.yml b/docker-compose.yml index e24f734..0c7b833 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,7 +28,7 @@ services: stdin_open: true tty: true volumes: - - ./qnslogs:/qnslogs + - ./logs/server:/logs environment: - ROLE=server - SERVER_PARAMS=$SERVER_PARAMS @@ -48,7 +48,7 @@ services: stdin_open: true tty: true volumes: - - ./qnslogs:/qnslogs + - ./logs/client:/logs environment: - ROLE=client - CLIENT_PARAMS=$CLIENT_PARAMS