Skip to content

Commit

Permalink
Improve local deployment (#115)
Browse files Browse the repository at this point in the history
* Avoid docker variables searching in HASHED_PASSWORD env

* Fix typo

* Add known issues block
  • Loading branch information
Set27 authored Aug 9, 2024
1 parent b1601ef commit cd49e57
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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=

Expand Down
7 changes: 5 additions & 2 deletions local-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
- **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

0 comments on commit cd49e57

Please sign in to comment.