-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice.sh
More file actions
executable file
·37 lines (36 loc) · 815 Bytes
/
service.sh
File metadata and controls
executable file
·37 lines (36 loc) · 815 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
37
#!/bin/bash
case "$1" in
"dev")
echo "Running in dev mode..."
python3 main.py
;;
# build
"build")
echo "building images..."
docker-compose build
echo "build complete"
;;
# start
"start")
echo "starting containers..."
docker-compose --compatibility up -d
;;
# start
"start-dev")
echo "starting containers [dev]..."
docker-compose --compatibility up
;;
# stop
"stop")
echo "stopping containers..."
docker-compose --compatibility stop
;;
# cleanup
"cleanup")
echo "removing containers..."
docker-compose --compatibility down
;;
*)
echo "Please provide a valid command: build | start | stop "
;;
esac