Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active June 19, 2018 01:01
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 garystafford/c6051ad5568ebdfba8fc2d2f79605835 to your computer and use it in GitHub Desktop.
Save garystafford/c6051ad5568ebdfba8fc2d2f79605835 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Deploys the storefront Docker stack
# usage: sh ./stack_deploy_local.sh
set -e
docker stack deploy -c docker-compose-middleware.yml storefront
echo "Starting the stack: middleware...pausing for 30 seconds..."
sleep 30
docker stack deploy -c docker-compose-services.yml storefront
echo "Starting the stack: services...pausing for 10 seconds..."
sleep 10
docker stack ls
docker stack services storefront
docker container ls
echo "Script completed..."
echo "Services may take up to several minutes to start, fully..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment