From c00287992caeb1c374ddaf9c854278c19130eb4e Mon Sep 17 00:00:00 2001 From: JohT Date: Sun, 22 May 2022 08:33:48 +0200 Subject: [PATCH] document database host and port environment variables and their defaults --- showcase-quarkus-eventsourcing/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/showcase-quarkus-eventsourcing/README.md b/showcase-quarkus-eventsourcing/README.md index 30045e2..1f1fe51 100644 --- a/showcase-quarkus-eventsourcing/README.md +++ b/showcase-quarkus-eventsourcing/README.md @@ -9,6 +9,7 @@ * Open another terminal/command window. Don't close the one where the h2 server is running. * Open the directory where this README.md is located. * Run the application by using the following command: `mvn compile quarkus:dev` +* (Optional) Use environment variable `H2_HOST` if the database runs on a different host than `localhost`. * Open the UI [http://localhost:8080](http://localhost:8080) * (Optional) Use the postman collection "showcase-quarkus-eventsourcing.postman_collection.json" for service call examples. * (Optional) Use the unit tests inside the service package to replay nicknames, create new ones or create further accounts. @@ -19,6 +20,8 @@ * Start PostgreSql database with (default) name "postgres" on port 5432. Details see [application.properties](./src/main/resources/application.properties). * Open the directory where this README.md is located. * Run the application by using the following command: `mvn compile quarkus:dev -Dquarkus.profile=postgres` +* (Optional) Use environment variable `POSTGRES_HOST` if the database runs on a different host than `localhost`. +* (Optional) Use environment variable `POSTGRES_PORT` if the database runs on a different port than `5432`. * Open the UI [http://localhost:8080](http://localhost:8080) * (Optional) Use the postman collection "showcase-quarkus-eventsourcing.postman_collection.json" for service call examples. * (Optional) Use the unit tests inside the service package to replay nicknames, create new ones or create further accounts.