Skip to main content

Before you start

  • Open a terminal in the directory containing your **docker-compose.yml**.
  • Ensure Docker Desktop / Docker Engine is running.
  • If you’re unsure of service names, run:
or to see what’s running:

Service names you can target

Use any of the following service names in place of api in the examples below:

Stream live logs (follow mode)

Stream logs for a specific service:
Press Ctrl+C to stop following. Common filters
All services at once

Export logs to files (Linux/macOS)

Entire history (can be large):
Recent logs with timestamps (recommended for support):
Compress for sharing:
Stream & save simultaneously:

Export logs for all services (copy/paste)

Linux/macOS

Per-container logs (scaled services)

If a service is scaled (e.g., web has multiple replicas), you can export each container’s logs:
Container names are typically <project>_<service>_<index>. For ad-hoc viewing, docker compose logs <service> is simpler; for per-instance analysis, use docker logs <container>.

What should I collect for Support?

When requested, please provide:
  1. The .log, .tar.gz, or .zip files you created above (ideally limited with --since and/or --tail).
  2. The time window during which the issue occurred.
  3. The service name(s) involved (e.g., web, compare, server).
  4. Any noteworthy steps just before the issue (deploy, restart, config change, etc.).

Troubleshooting tips

  • Keep it concise: Use --since (e.g., 2h, 24h) and --tail to reduce noise and file size.
  • Timestamps help: Add --timestamps so lines can be correlated across services.
  • Startup issues: Check web_init and server first; they often surface misconfigurations early.
  • Dependencies: If the app looks healthy but jobs stall, review celery_worker and celery_beat. For connectivity or persistence problems, check db, redis, and rabbitmq.
  • Redaction: Logs may contain URLs or IDs. Skim before sharing externally.

FAQ

Yes. docker compose resolves services from the docker-compose.yml in the current directory (or use --file to point to the correct one).
docker compose logs prints plain text from the Docker log driver. If your services emit JSON lines, they’ll appear as such. For structured querying, consider a central log stack (e.g., Loki/ELK) in addition to these ad-hoc exports.
Narrow with --since, --until, and --tail. For example:
Get in touch with our support team at support@draftable.com and we will do our best to help you.