Skip to content

Instantly share code, notes, and snippets.

@renevo
Last active March 15, 2017 22:54
Show Gist options
  • Save renevo/328b70d7f7eb5ce7f0cfdc58d1b5f9a4 to your computer and use it in GitHub Desktop.
Save renevo/328b70d7f7eb5ce7f0cfdc58d1b5f9a4 to your computer and use it in GitHub Desktop.
nginx reload on compose scale
docker-compose up -d
docker-compose scale node=3
docker-compose up -d
for /f %%i in ('docker ps -f "Name=nginx_instance_name_from_compose" -q') do set CONTAINER_ID=%%i
echo FOUND CONTAINER ID %CONTAINER_ID%
docker exec %CONTAINER_ID% nginx -s reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment