Skip to content

Local Testing

max-zaremba-tcg edited this page Nov 7, 2025 · 2 revisions

Local testing

Running unit tests locally

Drop into the API container with:

docker exec -it fecfile-api bash -H

You can then run unit tests with:

python3 manage.py test [-k <test name>]

Monitoring containers

docker stats

Viewing logs

View logs for a single container:

docker logs <container ID> [-f]

View logs for all containers:

docker compose logs [-f]

To view only the error logs:

docker logs <container ID> [-f] 1>/dev/null

To view only the access logs:

docker logs <container-id> [-f] 2>/dev/null
Clone this wiki locally