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

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

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -