From cd49e57ea70c5a709882d63a1832a91c6f322bb6 Mon Sep 17 00:00:00 2001 From: Matvei Tratseuski <49077110+Set27@users.noreply.github.com> Date: Fri, 9 Aug 2024 18:46:33 +0300 Subject: [PATCH] Improve local deployment (#115) * Avoid docker variables searching in HASHED_PASSWORD env * Fix typo * Add known issues block --- .env.example | 4 ++-- local-deployment.md | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index 89d68798..9e98c0f3 100644 --- a/.env.example +++ b/.env.example @@ -4,7 +4,7 @@ DOMAIN=localhost # Username and Password for Traefik HTTP Basic Auth USERNAME=admin -HASHED_PASSWORD=$apr1$7UvB4Qa3$9W8H0tmwFbQ9MYljwkbCJ. # password=changethis +HASHED_PASSWORD='$apr1$7UvB4Qa3$9W8H0tmwFbQ9MYljwkbCJ.' # password=changethis # Environment: local, staging, production ENVIRONMENT=local @@ -32,7 +32,7 @@ DENSE_EMBEDDING_MODEL=BAAI/bge-small-en-v1.5 SPARSE_EMBEDDING_MODEL=prithivida/Splade_PP_en_v1 -# Langsmith: For llm observability +# Langsmith: For llm observability LANGCHAIN_TRACING_V2= LANGCHAIN_API_KEY= diff --git a/local-deployment.md b/local-deployment.md index ea4f9c7b..1dbe534f 100644 --- a/local-deployment.md +++ b/local-deployment.md @@ -84,5 +84,8 @@ Once the containers are running, you can access various services through the fol ## Troubleshooting - **Out of Memory**: If you are getting the `Worker (pid:14) was sent SIGKILL! Perhaps out of memory?` error, this is due to the number of processes started for the backend container consuming more memory than what is available. You can fix this by decreasing `MAX_WORKERS` in your `.env` file. -- **Unable to login to Traefik Dashboard**: Ensure that username and password is correct. If you are using zsh, `USERNAME` environment variable corresponds to the real user ID of the shell process, so you shold use your user ID as the username. -- **Cannot login to Adminer**: Set 'System' to `PostgreSQL` and set the 'server' field should be `db`. The other fields should follow the values in your `.env` file. \ No newline at end of file +- **Unable to login to Traefik Dashboard**: Ensure that username and password is correct. If you are using zsh, `USERNAME` environment variable corresponds to the real user ID of the shell process, so you should use your user ID as the username. +- **Cannot login to Adminer**: Set 'System' to `PostgreSQL` and set the 'server' field should be `db`. The other fields should follow the values in your `.env` file. + +## Known issues +- **Password does not match for user "postgres-tribe"**: https://github.com/StreetLamb/tribe/issues/84#issuecomment-2250219701