This repository was archived by the owner on Jun 28, 2025. It is now read-only.
forked from Dyneteq/reconya
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·48 lines (40 loc) · 1.46 KB
/
start.sh
File metadata and controls
executable file
·48 lines (40 loc) · 1.46 KB
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
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
set -e
# Colors for pretty output
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m' # No Color
echo -e "${GREEN}Starting RecoNya...${NC}"
# Check if docker and docker-compose are installed
if ! command -v docker &> /dev/null; then
echo -e "${RED}Docker is not installed. Please install Docker first.${NC}"
echo "Visit https://docs.docker.com/engine/install/ for installation instructions."
exit 1
fi
# Check for docker compose v2 or docker-compose
if command -v docker compose &> /dev/null; then
COMPOSE_CMD="docker compose"
elif command -v docker-compose &> /dev/null; then
COMPOSE_CMD="docker-compose"
else
echo -e "${RED}Docker Compose is not installed. Please install Docker Compose first.${NC}"
echo "Visit https://docs.docker.com/compose/install/ for installation instructions."
exit 1
fi
# Check if .env file exists
if [ ! -f .env ]; then
echo -e "${YELLOW}No .env file found. Run ./setup.sh first or create an .env file manually.${NC}"
exit 1
fi
# Load environment variables
source .env
# Start the application
echo -e "${YELLOW}Starting containers...${NC}"
$COMPOSE_CMD up -d
echo -e "\n${GREEN}RecoNya is now running!${NC}"
echo -e "Access the application at: ${YELLOW}http://localhost:${FRONTEND_PORT:-3001}${NC}"
echo -e "API is available at: ${YELLOW}http://localhost:3008${NC}"
echo
echo -e "To view logs, run: ${YELLOW}./logs.sh${NC}"
echo -e "To stop the application, run: ${YELLOW}./stop.sh${NC}"