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

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -