-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·54 lines (45 loc) · 1.19 KB
/
Copy pathstart.sh
File metadata and controls
executable file
·54 lines (45 loc) · 1.19 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
49
50
51
52
53
54
#!/bin/bash
# Wedding Party Website - Quick Start Script
echo "===================================="
echo " Wedding Party Website"
echo "===================================="
echo ""
# Check if Docker is installed
if ! command -v docker &> /dev/null; then
echo "Error: Docker is not installed"
echo "Please install Docker from https://www.docker.com/get-started"
exit 1
fi
# Check if Docker Compose is installed
if ! command -v docker-compose &> /dev/null; then
echo "Error: Docker Compose is not installed"
echo "Please install Docker Compose"
exit 1
fi
echo "Building Docker image..."
docker-compose build
if [ $? -ne 0 ]; then
echo "Error: Failed to build Docker image"
exit 1
fi
echo ""
echo "Starting container..."
docker-compose up -d
if [ $? -ne 0 ]; then
echo "Error: Failed to start container"
exit 1
fi
echo ""
echo "===================================="
echo " Website is now running!"
echo "===================================="
echo ""
echo "Open your browser and navigate to:"
echo " http://localhost:8080"
echo ""
echo "To stop the website, run:"
echo " docker-compose down"
echo ""
echo "To view logs, run:"
echo " docker-compose logs -f"
echo ""