---
name: "docker-compose-restart"
section: "1"
platform: "linux"
package: "docker-compose"
version: "2.26.1-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/docker-compose-restart"
---

# docker-compose-restart(1)

Restart service containers

## NAME

docker-compose-restart - Restart service containers

## SYNOPSIS

**docker compose restart \[OPTIONS\] \[SERVICE...\]**

## DESCRIPTION

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 ⟨https://github.com/compose-spec/compose-spec/blob/master/spec.md#restart⟩ or restart\_policy ⟨https://github.com/compose-spec/compose-spec/blob/master/deploy.md#restart\_policy⟩.

## OPTIONS

**-h**, **--help**\[=false\]\
 	help for restart

**--no-deps**\[=false\]\
 	Don't restart dependent services

**-t**, **--timeout**=0\
 	Specify a shutdown timeout in seconds

## OPTIONS INHERITED FROM PARENT COMMANDS

**--dry-run**\[=false\]\
 	Execute command in dry run mode

## SEE ALSO

**[docker-compose(1)](/docker-compose/1.md)**
