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

This commit is contained in:
Kiril Isakov 2024-05-30 02:03:25 +02:00 committed by GitHub
parent 34cdde1e49
commit 4dee67316f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.