From 4dee67316fcd821eab9b67e50da79bc69ddd2cf4 Mon Sep 17 00:00:00 2001 From: Kiril Isakov Date: Thu, 30 May 2024 02:03:25 +0200 Subject: [PATCH] logs: 4 ways to run `docker compose logs` depending on (a) where `docker-compose.yml` is located, and (b) whether you specify or not a container name --- manual/docker/deploy_seafile_with_docker.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/manual/docker/deploy_seafile_with_docker.md b/manual/docker/deploy_seafile_with_docker.md index 1f348637..6a5bd843 100644 --- a/manual/docker/deploy_seafile_with_docker.md +++ b/manual/docker/deploy_seafile_with_docker.md @@ -65,10 +65,18 @@ Placeholder spot for shared volumes. You may elect to store certain persistent i ### Find logs -To view Seafile docker logs, please use the following command +To monitor container logs (from outside of the container), please use the following commands: ```bash -docker compose logs -f +# if the `docker-compose.yml` file is in current directory: +docker compose logs --follow +# if the `docker-compose.yml` file is elsewhere: +docker compose -f /path/to/docker-compose.yml logs --follow + +# you can also specify container name: +docker compose logs seafile --follow +# or, if the `docker-compose.yml` file is elsewhere: +docker compose -f /path/to/docker-compose.yml logs seafile --follow ``` The Seafile logs are under `/shared/logs/seafile` in the docker, or `/opt/seafile-data/logs/seafile` in the server that run the docker.