-
Notifications
You must be signed in to change notification settings - Fork 0
/
start
executable file
·36 lines (26 loc) · 846 Bytes
/
start
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
ENV_FILE="./.env"
print_color() {
COLOR="$1"
TEXT="$2"
echo -e "${COLOR}${TEXT}${NC}"
}
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
RED='\033[0;31m'
NC='\033[0m' # No Colour
print_separator() {
print_color "$BLUE" "===================================================="
}
./scripts/create_env
print_separator
print_color "$BLUE" "########## Pulling Docker Images ##########"
docker compose pull || print_color "$RED" "Failed to pull Docker images!"
print_separator
print_color "$BLUE" "########## Starting the Application in 3 Seconds... ##########"
print_color "$YELLOW" "########## CTRL-C To Interrupt ##########"
sleep 3
docker compose up -d || print_color "$RED" "Failed to start the application!"
print_separator
print_color "$GREEN" "########## Application Started Successfully ##########"