Compartir comentarios
Las respuestas se generan en base a la documentación.

docker compose restart

DescripciónRestart service containers
Usodocker compose restart [OPTIONS] [SERVICE...]

Descripción

Restarts all stopped and running services, or the specified services only.

If you make changes to your compose.yml configuration, these changes are not reflected after running this command. For example, changes to environment variables (which are added after a container is built, but before the container's command is executed) are not updated after restarting.

If you are looking to configure a service's restart policy, refer to restart or restart_policy.

Opciones

OpciónPredeterminadoDescripción
--no-depsDon't restart dependent services
-t, --timeoutSpecify a shutdown timeout in seconds