ENV variable - docker #27
Closed
githubdebugger
started this conversation in
General
Replies: 1 comment 1 reply
-
@githubdebugger Thank you for bringing this to my attention. This will be fixed in the next release. I had just changed the project to use the next server for requesting TTS. Previously passing in the env variables wasn't possible because the Now that I am using the server, I can use regular env variables that are runtime variables, and will work with setting in the docker run command. Look at the README.md for updated instructions. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to pass -e Env variable to the container on the latest version 0.2.0 like this:
docker run -d --name openreader-webui -e NEXT_PUBLIC_OPENAI_API_BASE="http://192.168.1.1:8880/v1" -e NEXT_PUBLIC_OPENAI_API_KEY="not_needed" -p 3003:3003 -v openreader_docstore:/app/docstore --restart unless-stopped richardr1126/openreader-webui:latest
But, it does not seem to be working, I tried opening the openreader-webui server in an incognito window, it still defaults to openai base URL.
The docker env seems to be correct though.
$ docker exec openreader-webui env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=18aa343e3343
NEXT_PUBLIC_OPENAI_API_BASE=http://192.168.1.1:8880/v1
NEXT_PUBLIC_OPENAI_API_KEY=not_needed
NODE_VERSION=23.8.0
YARN_VERSION=1.22.22
HOME=/root
Beta Was this translation helpful? Give feedback.
All reactions