How to restart a single container with docker-compose -


i have docker-compose.yml file contains 4 containers: redis, postgres, api, worker

during development of worker, need restart in order apply changes. there way restart container (e.g. worker) without restarting other containers?

it simple: use command:

docker-compose restart worker 

you can set time wait stop before killing container (in seconds)

docker-compose restart -t 30 worker 

thats !


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -