Updated README.md

This commit is contained in:
Anry Das 2025-02-23 11:13:47 +02:00
parent 1835546049
commit 067fc8a17c

View File

@ -6,10 +6,28 @@
### 📌 Using
- Put applications into `./data/app` folder to use Docker's mounted applications to be launched
- or Put applications into `./apps` folder to use launched applications directly in the container4 in the case uncomment rows in `./Dockerfile`
- **Do not forget** to make or correct `start.sh` file in each of subdirectories in application's dir.
- **Do not forget** to make or correct `start.sh` file in each of subdirectories in application's dir [as in example](#StsartExample).
- Launch a Docker
```shell
docker compose up -d
```
#### start.sh file example<a id='StsartExample' />
```shell
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR" || exit 127
JAVA_D_PARAMS="
-Dspring.profiles.active=prod
-Dlogging.file.name=logs/ServiceName.log
"
java -jar ${JAVA_D_PARAMS} ServiceName.jar &
exit 0
```
###### _Made by -=:dAs:=-_