Skip to content

Instantly share code, notes, and snippets.

@MartyLake
Last active November 17, 2021 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartyLake/7db15d758717647ccd94fdb939fcf0da to your computer and use it in GitHub Desktop.
Save MartyLake/7db15d758717647ccd94fdb939fcf0da to your computer and use it in GitHub Desktop.
docker-compose
# check if all docker-compose containers are properly running
bash -c "(diff <(cd /srv && /usr/bin/local/docker-compose ps --services --filter "status=running") <(cd /srv && /usr/bin/local/docker-compose ps --services) || /usr/bin/local/docker-compose up -d) >> /var/log/crontab-root-dbg.log"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment