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
Post a Comment