Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use docker-compose for getting logs #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ It reports statistics of violations for the whole audit, domains and pages.
- `docker-compose down` will stop and remove the containers. They are recreated automatically with `docker-compose up -d`.

## To check the server logs
- Get a list of container ids: `docker ps`.
- Look at the logs for a container: `docker logs <container_id>`.
- Keep looking in real time: `docker logs -f <container_id>`.
(another way to do that is to use `docker-compose up` without the `-d` option)
- Get the logs from all containers: `docker-compose logs`
- Look at the logs from a single service: `docker-compose logs <service>`.
(Services from docker-compose.yml: `accessibility_audit` or `mongodb`)
- Keep looking in real time: `docker-compose logs -f`.
- Look at the last 20 lines of logs: `docker-compose logs --tail 20`

## To uninstall
**Warning**: this will remove all the data !!!
Expand Down