Skip to content

Commit 567e5fd

Browse files
committed
add .env.example to docker
1 parent 683942d commit 567e5fd

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

examples/docker/.env.example

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# **NOTE**: Ensure that there are no quotes surrounding any of the keys and values.
2+
3+
CHRONOS_DB="MongoDB or PostgreSQL"
4+
CHRONOS_URI="The URI to the desired MongoDB or PostgreSQL database to save health metrics via Chronos"
5+
CHRONOS_GRAFANA_API_KEY=Bearer "[the access token you created in above section (Grafana API Key)]"
6+
7+
MONGO_URI_AUTH="A MongoDB URI for the auth server microservice to use"
8+
MONGO_URI_ITEMS="A MongoDB URI for the items server microservice to use"
9+
MONGO_URI_INVENTORY="A MongoDB URI for the inventory server microservice to use"
10+
MONGO_URI_ORDERS="A MongoDB URI for the orders server microservice to use"
11+
12+
# A random string used to sign and verify JSON Web Tokens used by the auth service - the random string provided will work
13+
JWT_KEY=16a8dcb7e3445392b8124f82a451fb2c1c42a1ad4d599e43ebaf4cbbad8c7d59
14+
JWT_LIFETIME="The time-to-expiration of the JSON Web Token used by the auth service - this is set to `1d` in `sample.env` meaning user authentication is valid for 1 day"

examples/docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ For additional details on how Chronos works this example, please review the Dock
3939

4040
Peform the following steps in each of the _Auth_, _Items_, _Inventory_, _Orders_, _Client_, and _Event-Bus_ directories
4141

42-
1. Add a `.env` file to each of _Auth_, _Items_, _Inventory_, _Orders_, _Event-Bus_, and _Client_ folders with the following key/value pairs (a `sample.env` file is provided in the `/examples/docker` directory):
42+
1. Add a `.env` file to each of _Auth_, _Items_, _Inventory_, _Orders_, _Event-Bus_, and _Client_ folders with the following key/value pairs (a `.env.example` file is provided in the `/examples/docker` directory):
4343

4444
- **NOTE**: Ensure that there are no quotes surrounding any of the keys and values.
4545

0 commit comments

Comments
 (0)