-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerify
More file actions
executable file
·32 lines (29 loc) · 998 Bytes
/
dockerify
File metadata and controls
executable file
·32 lines (29 loc) · 998 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
#!/usr/bin/env bash
while getopts ":udbf" opt; do
case $opt in
b)
echo "Spinning up backend..."
docker-compose -f ./backend/docker-compose.yml up -d
;;
f)
echo "Spinning up frontend..."
docker-compose -f ./frontend/docker-compose.yml up -d
;;
u)
echo "Spinning up backend..."
docker-compose -f ./backend/docker-compose.yml up -d
echo "Spinning up frontend..."
docker-compose -f ./frontend/docker-compose.yml up -d
;;
d)
echo "Spinning down and removing backend..."
docker-compose -f ./backend/docker-compose.yml down --volumes --rmi all
echo "Spinning down and removing frontend..."
docker-compose -f ./frontend/docker-compose.yml down --volumes --rmi all
;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
;;
esac
done