DEV Community

goffity
goffity

Posted on

Restart Rebuild and ReCreate container on docker compose v2

I want to use docker compose to deploy a new version of an application, However, I do not want to down the compose project and eliminate the volume of other services.

  1. Remove any services that are attempting to deploy.
  2. Start service.
docker compose rm -s -v -f ${service_name}
docker compose up -d ${service_name}
Enter fullscreen mode Exit fullscreen mode

Discussion (0)