From 7e8f1cc3601e09d0214cf7019b5ca36313a6a35f Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Sun, 8 Sep 2024 14:36:33 -0700 Subject: [PATCH] Add instructions to readme --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d396ae397..ce9d1dbf8 100644 --- a/README.md +++ b/README.md @@ -176,7 +176,7 @@ To get the application up and running you need to: CLIENT_HOST="http://localhost:5173" JWT_SECRET= DB_TYPE="MongoDB" -DB_CONNECTION_STRING="mongodb://mongodb:27017/uptime_db" +DB_CONNECTION_STRING="mongodb://:@mongodb:27017/uptime_db" REDIS_HOST="redis" REDIS_PORT=6379 TOKEN_TTL="99d" @@ -194,6 +194,13 @@ VITE_APP_API_BASE_URL="http://localhost:5000/api/v1" VITE_APP_API_LOG_LEVEL="debug" ``` +3. In the `Dokcer` directory create a `mongo.env` file with a username and password: + +``` +USERNAME_ENV_VAR=user +PASSWORD_ENV_VAR=password +``` + 4. In the `Docker` directory run `docker compose up` to run the `docker-compose.yaml` file and start all four images. That's it, the application is ready to use on port 80.