Skip to content

Restart & Operations

Run all commands on this page from the asp-compose/ deployment directory. After starting, recreating, or restarting services, or after applying configuration changes, run a complete deployment check:

bash
./scripts/doctor.sh

1. Check service status

View all containers:

bash
docker compose ps

STATUS should be running, and services with health checks should be healthy.

doctor.sh waits for every official long-running service to become running/healthy, then checks PostgreSQL, Redis, Django, custom definitions, and the RustFS/S3 bucket.

Admins can also open System Settings > Workers to view heartbeat, runtime state, and the latest polling result for all five background Workers. This page does not replace container status, business records, or log investigation.

2. View logs

List available service names:

bash
docker compose config --services

Follow a service:

bash
docker compose logs -f <service>

View the most recent 100 lines:

bash
docker compose logs --tail=100 <service>

For example:

bash
docker compose logs -f asp-frontend
docker compose logs --tail=100 asp-web

Nginx and backend process logs are also written under logs/.

3. Choose the correct operation

ScenarioCommand
Restart processes in existing containersdocker compose restart
Apply .env or compose.override.yaml changesdocker compose up -d
Reload replaced certs/asp.crt and certs/asp.keydocker compose restart asp-frontend
Stop all services while preserving containers and datadocker compose stop
Start stopped servicesdocker compose up -d

Restart services

Restart all services:

bash
docker compose restart

Restart Web/API services:

bash
docker compose restart asp-frontend asp-web asp-asgi

Restart background workers:

bash
docker compose restart asp-worker-module asp-worker-case-analysis asp-worker-playbook asp-worker-elk-action asp-worker-dashboard-cache

Apply configuration changes

After changing .env or compose.override.yaml:

bash
docker compose up -d

Stop and start

bash
docker compose stop
docker compose up -d

stop stops containers. down removes containers and the Compose network while preserving named volumes by default. down -v also deletes named volumes.

Do not delete volumes

Do not run docker compose down -v unless you explicitly intend to delete all persistent PostgreSQL, Redis, RustFS, and custom Python dependency data.

4. General troubleshooting

  1. Check service status:

    bash
    docker compose ps
  2. Find services that are not running/healthy.

  3. Inspect the recent service logs:

    bash
    docker compose logs --tail=100 <service>
  4. Fix the configuration or runtime problem, choose restart or up -d, then run:

    bash
    ./scripts/doctor.sh

Next Steps