summaryrefslogtreecommitdiff
path: root/yams
diff options
context:
space:
mode:
Diffstat (limited to 'yams')
-rwxr-xr-xyams14
1 files changed, 14 insertions, 0 deletions
diff --git a/yams b/yams
new file mode 100755
index 0000000..cba00c0
--- /dev/null
+++ b/yams
@@ -0,0 +1,14 @@
+#!/bin/bash
+set -eu
+
+if [ $1 == "restart" ]; then
+ docker-compose -f <filename> stop && docker-compose up -d
+fi
+
+if [ $1 == "stop" ]; then
+ docker-compose -f <filename> stop
+fi
+
+if [ $1 == "start" ]; then
+ docker-compose -f <filename> up -d
+fi