Restart & Operations
This page covers common production operations for Docker Compose deployments, including status checks, logs, restarts, stop/start commands, and custom content changes.
1. Check current status
docker compose ps
./scripts/doctor.shdoctor.sh checks PostgreSQL, Redis, Django, Custom definitions, and the RustFS/S3 bucket. In production, run it after upgrades, restarts, or custom definition changes.
2. View logs
View container stdout and stderr:
docker compose logs -f asp-frontend
docker compose logs -f asp-web
docker compose logs -f asp-worker-elk-actionView mounted process logs under the deployment directory:
tail -f logs/django.log
tail -f logs/asgi.log
tail -f logs/agentic-module-worker.log
tail -f logs/agentic-case-analysis-worker.log
tail -f logs/agentic-playbook-worker.log
tail -f logs/elk-action-worker.log3. Restart services
Restart all ASP services:
docker compose restartRestart only the Web/API entrypoints:
docker compose restart asp-frontend asp-web asp-asgiRestart only background workers:
docker compose restart asp-worker-module asp-worker-case-analysis asp-worker-playbook asp-worker-elk-actionAfter changing
.env,compose.yaml, or port mappings, rundocker compose up -dto apply the Compose definition. When only replacing certificates or asking processes to reload configuration, usedocker compose restart <service>.
4. Stop and start
Stop containers while keeping data volumes:
docker compose stopStart again:
docker compose up -dDo not run
docker compose down -vin production unless you explicitly want to delete PostgreSQL, Redis, and RustFS Docker volumes.
5. Custom content changes
- If only Module, Playbook, or SIEM YAML files changed, run
Refresh / Validatein Custom Console. - If
custom/requirements.txtchanged, reinstall dependencies and restart related workers.
docker compose run --rm asp-custom-deps --index-url https://pypi.org/simple
docker compose restart asp-worker-module asp-worker-playbook