-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun-docker.sh
More file actions
33 lines (26 loc) · 1.11 KB
/
run-docker.sh
File metadata and controls
33 lines (26 loc) · 1.11 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
#!/bin/bash
# This script builds and starts the entire application stack using Docker Compose.
# It ensures all environment variables from your .env file are available.
# Exit immediately if a command exits with a non-zero status.
set -e
echo "--- Starting AmberOps Console with Docker Compose ---"
# Check if .env file exists
if [ ! -f .env ]; then
echo "Error: .env file not found. Please create one by copying .env.example."
exit 1
fi
# Build and start all services in detached mode
echo "--- Building images and starting containers... ---"
docker-compose up --build -d
echo ""
echo "✅ All services have been started in detached mode."
echo "You can view logs for a specific service with: docker-compose logs -f [service_name]"
echo "Example: docker-compose logs -f web"
echo ""
echo "To stop all services, run: docker-compose down"
echo "-------------------------------------------------------"
echo "Application URLs:"
echo " - Landing Page: http://localhost:3001"
echo " - Dashboard App: http://localhost:3000"
echo " - Admin App: http://localhost:3003"
echo "-------------------------------------------------------"