summaryrefslogtreecommitdiff
path: root/bin/dca
diff options
context:
space:
mode:
authorSystem administrator2017-05-29 13:26:10 +0200
committerSystem administrator2017-05-29 13:26:10 +0200
commitbc5c44dd049bad3b007be48b3f8d90886d63c105 (patch)
treea381d989db2295f228f9bc95a774f0cc9aef4c40 /bin/dca
downloadserver-bc5c44dd049bad3b007be48b3f8d90886d63c105.tar.gz
server-bc5c44dd049bad3b007be48b3f8d90886d63c105.tar.xz
server-bc5c44dd049bad3b007be48b3f8d90886d63c105.zip
Initial commit
Diffstat (limited to 'bin/dca')
-rwxr-xr-xbin/dca13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/dca b/bin/dca
new file mode 100755
index 0000000..2289ac1
--- /dev/null
+++ b/bin/dca
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+shopt -s nullglob
+
+echo Using ./services/*.yml
+COMPOSE_OPTIONS=""
+for file in ./services/*.yml; do
+ COMPOSE_OPTIONS="${COMPOSE_OPTIONS} -f $file"
+done
+
+export COMPOSE_PROJECT_NAME=server
+export IMAGES=$PWD/images
+
+docker-compose $COMPOSE_OPTIONS "$@"