Skip to content

Instantly share code, notes, and snippets.

@sebastian13
Created March 11, 2019 09:48
Show Gist options
  • Save sebastian13/b1e29a2f334320dac1cae98e5a42b38f to your computer and use it in GitHub Desktop.
Save sebastian13/b1e29a2f334320dac1cae98e5a42b38f to your computer and use it in GitHub Desktop.
#!/bin/bash
# Look for subdirectories starting with a letter
# and reset all containers
for d in [a-z]*
do
( cd "$d" && docker-compose down --remove-orphans && docker-compose up -d )
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment