router-dashboard/readme.txt

38 lines
1.5 KiB
Plaintext

1. Go to router-dashboard directory
2. Run below command to build the docker images, create sql schema, insert data and start containers
docker-compose up --build -d
3. When code changes done, then just run above command mentioned in point 2,
it will udpate the changes and restart containers for which code changed
4. Open below URL in web browser to verify UI
http://localhost:5173
5. Open mysql workbench/any tool to view schema details
database:ve_router_db
host: localhost
port:3306
user/password: ve_router_user/ve_router_password
6. Run below command to stop and remove containers
docker-compose down
7. Run below command to stop, remove and delete all the volumes
Caution : if mysql has volumes then all the existing data will be erasesd
docker-compose down -v
Deploy Instructions:
1. Basic usage with just server IP:
./deploy.sh -s 192.168.1.100
2.Specify different IPs for frontend and backend:
./deploy.sh -s 192.168.1.100 -f 192.168.1.101
3.Specify environment:
./deploy.sh -s 192.168.1.100 -e staging
4.Full configuration:
./deploy.sh -s 192.168.1.100 -f 192.168.1.101 -d mysql -e production
5.Run it with the help flag to see options:
./deploy.sh --help
Important notes:
In production, you should use HTTPS instead of HTTP
Make sure your firewall rules allow the necessary ports (3000, 5173, 3306)
Consider using a reverse proxy like Nginx in front of your services
The MySQL container is accessible to other containers through the service name "mysql" when using Docker networks