From e42cc6601def4bf585199b2aee333274d46bbe4b Mon Sep 17 00:00:00 2001 From: nolim1t Date: Thu, 27 Feb 2020 17:20:12 +0700 Subject: [PATCH] Docker compose --- .../04-docker-compose/files/compose-service | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 stage2/04-docker-compose/files/compose-service diff --git a/stage2/04-docker-compose/files/compose-service b/stage2/04-docker-compose/files/compose-service new file mode 100644 index 0000000..4ec116c --- /dev/null +++ b/stage2/04-docker-compose/files/compose-service @@ -0,0 +1,23 @@ +#!/bin/sh + +set -e + +case "$1" in + start) + echo "Starting" + cd /home/umbrel + docker-compose up -d + ;; + stop) + echo "Stopping docker" + cd /home/umbrel + docker-compose down + ;; + status) + echo "Status" + docker ps -a + ;; + *) + echo "Either 'start', 'stop', or 'status'" + ;; +esac