summaryrefslogtreecommitdiff
path: root/docker/start
diff options
context:
space:
mode:
Diffstat (limited to 'docker/start')
-rwxr-xr-xdocker/start12
1 files changed, 12 insertions, 0 deletions
diff --git a/docker/start b/docker/start
new file mode 100755
index 0000000..921b80f
--- /dev/null
+++ b/docker/start
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+pushd $(dirname $BASH_SOURCE)
+
+if [[ -n "$(docker-compose ps -q)" ]]; then
+ echo "Service already running" >&2
+ exit 1
+fi
+
+docker-compose up --build -d
+docker-compose exec db mysqladmin -uroot --wait=10 ping
+docker-compose exec db mysqladmin -uroot create fluxbb