Skip to content

Commit 8a4aca2

Browse files
committed
rename .env file in microservices example to sample, deleted all dependencies for testing
1 parent 78000fa commit 8a4aca2

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

examples/microservices/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Define directories
2-
DIRS := auth client client-dev common event-bus inventory items
2+
DIRS := auth client client-dev common event-bus inventory items orders
33

44
# Define the content of the .env file
55
define ENV_CONTENT

examples/microservices/sample.env

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
CHRONOS_DB=MongoDB
2+
# Database connection string for Chronos to write metric to
3+
CHRONOS_URI=mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.5
4+
5+
# Database connection strings for each microservice
6+
MONGO_URI_AUTH=mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.5
7+
MONGO_URI_ITEMS=mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.5
8+
MONGO_URI_INVENTORY=mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.5
9+
MONGO_URI_ORDERS=mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.5
10+
11+
# this is the secret for auth service to sign/verify json web tokens
12+
JWT_KEY=thisStringDoesNotMatterItJustNeedsToBeDefined
13+
# this is time til expiration for the json web token
14+
JWT_LIFETIME=1d

0 commit comments

Comments
 (0)