container-compose restart¶
Restart running containers without re-creating them.
Synopsis¶
Options¶
| Flag | Shorthand | Type | Default | Description |
|---|---|---|---|---|
--file |
-f |
path | The path to your Docker Compose file | |
--profile |
string | Specify a profile to enable. Can be specified multiple times. |
Arguments¶
| Argument | Description |
|---|---|
services |
Specify the services to restart |
Examples¶
Restart all services¶
Restart all containers for the project.
Restart a specific service¶
Only restart the web service.