forked from ultrasecurity/Storm-Breaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-start.sh
More file actions
executable file
·36 lines (27 loc) · 873 Bytes
/
docker-start.sh
File metadata and controls
executable file
·36 lines (27 loc) · 873 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
set -e
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'
echo -e "${GREEN}Storm-Breaker Docker Start${NC}"
echo "==========================="
# Create .env if missing
if [ ! -f .env ]; then
cp .env.example .env
fi
source .env
echo -e "${YELLOW}Building and starting containers...${NC}"
docker compose up -d --build
DOMAIN="${DOMAIN:-localhost}"
echo ""
echo -e "${GREEN}Storm-Breaker is running!${NC}"
if [ "$DOMAIN" = "localhost" ] || [ -z "$DOMAIN" ]; then
echo -e "Access panel: ${GREEN}http://localhost:${HTTP_PORT:-80}${NC}"
else
echo -e "Access panel: ${GREEN}https://${DOMAIN}${NC}"
echo -e "Caddy will automatically provision a Let's Encrypt certificate."
fi
echo -e "Default credentials: admin / admin"
echo ""
echo -e "To stop: ${YELLOW}docker compose down${NC}"
echo -e "To view logs: ${YELLOW}docker compose logs -f${NC}"