forked from RothAndrew/docker-compose-flowable
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflowable
More file actions
executable file
·37 lines (34 loc) · 785 Bytes
/
flowable
File metadata and controls
executable file
·37 lines (34 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
DOCKER_COMPOSE_FILE="docker-compose.yml"
if [ -z "$1" ]
then
echo -e "Usage: \n${0##*/} start \n${0##*/} stop \n${0##*/} info"
exit 1
fi
if [ $1 == start ]
then
docker-compose -f $DOCKER_COMPOSE_FILE up -d
STATUS=$?
if [ $STATUS -eq 0 ]
then
echo -e "\nContainers starting in background \nFor log info: ${0##*/} info"
else
echo -e "\nFailed starting containers"
fi
elif [ $1 == stop ]
then
docker-compose -f $DOCKER_COMPOSE_FILE down
STATUS=$?
if [ $STATUS -eq 0 ]
then
echo -e "\nContainers successfully stopped"
else
echo -e "\nFailed stopping containers"
fi
elif [ $1 == info ]
then
docker-compose -f $DOCKER_COMPOSE_FILE logs --follow
else
echo -e "Usage: \n${0##*/} start \n${0##*/} stop \n${0##*/} info"
exit 1
fi