aboutsummaryrefslogtreecommitdiff
path: root/examples/example6/example6.sh
blob: 9078da1cc4a5a10c44794fafeb2843749586c057 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
# vim: set filetype=sh
#
# Author: Cody Hiar
# Date: 2019-01-15
#
# Description: run docker-compose command
#
# Set options:
#   e: Stop script if command fails
#   u: Stop script if unset variable is referenced
#   x: Debug, print commands as they are executed
#   o pipefail:  If any command in a pipeline fails it all fails
#
set -exuo pipefail

# Run the compose file
docker-compose up