docker compose restart --timeout 30 web

Category: Docker

docker compose restart --timeout 30 web

Restart a service with a stop timeout

Restarts the web service containers, sending SIGTERM and waiting up to 30 seconds for a graceful exit before killing. --timeout overrides the default shutdown grace. Restart does not rebuild images or recreate volumes.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.