WELCOME
-
Open terminal
-
Go to this project root (example: C:\Users\userName\DashNET)
-
copy .env file from existing example .env.example using command:
cp .env.example .env
- Start docker compose using command:
docker compose --profile default up -d --build
- Go to your browser -> type localhost:3000 url bar and press enter
To stop all services execute following command in project root;
# sudo
docker compose --profile default down
Running specific services can be done using predefined profiles.
docker compose --profile default up -d --build # start all services. Run compose in detached mode (-d)
docker compose --profile spring-mysql up -d --build # start the spring-be and mysqldb services (spring-be depends on mysqldb service)
docker compose --profile react up -d --build # nodejs services serving fe
docker compose --profile no-admin up -d --build # to run all services except phpMyAdmin.
Profiles:
Run all services: default
React front-end: react
MySQL: mysql
Spring + MySQL: spring-mysql
phpMyA + MySQL: mysql-admin
Spring + phpMyA + MySQL: spring-mysql-admin
default but w/o myPHPAdmin: no-admin
Restart specific service or profile using profile name
docker compose --profile ${profile-name} restart
docker compose --profile ${profile-name} down
Tomcat hot reload workaround
Just re-run up
command
docker compose --profile spring-mysql up -d --build
In CLI:
docker exec -it dashNet-mysql mysql -u <USERNAME> -p
Change < USERNAME > to existing user role. After command is executed you'll be prompted to enter password.
Or w/ GUI you can go to:
- Docker Desktop app
- Press Containers tab
- Open dashNET cluster
- Enter mysqldb container
- Press Exec tab
- type
mysql -u <USERNAME> -p
pressENTER
- then type
<PASSWORD>
and hitENTER
again
Create Swagger