mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 05:24:02 +00:00
feat: docker for multi-user support updated
This commit is contained in:
parent
dedb42582b
commit
99e8816e73
@ -22,6 +22,9 @@ ARG OLLAMA_API_BASE_URL='/ollama/api'
|
|||||||
|
|
||||||
ENV ENV=prod
|
ENV ENV=prod
|
||||||
ENV OLLAMA_API_BASE_URL $OLLAMA_API_BASE_URL
|
ENV OLLAMA_API_BASE_URL $OLLAMA_API_BASE_URL
|
||||||
|
ENV WEBUI_AUTH ""
|
||||||
|
ENV WEBUI_DB_URL ""
|
||||||
|
ENV WEBUI_JWT_SECRET_KEY "SECRET_KEY"
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app/build /app/build
|
COPY --from=build /app/build /app/build
|
||||||
|
@ -55,7 +55,3 @@ if WEBUI_AUTH:
|
|||||||
####################################
|
####################################
|
||||||
|
|
||||||
WEBUI_JWT_SECRET_KEY = os.environ.get("WEBUI_JWT_SECRET_KEY", "t0p-s3cr3t")
|
WEBUI_JWT_SECRET_KEY = os.environ.get("WEBUI_JWT_SECRET_KEY", "t0p-s3cr3t")
|
||||||
|
|
||||||
if ENV == "prod":
|
|
||||||
if WEBUI_JWT_SECRET_KEY == "":
|
|
||||||
WEBUI_JWT_SECRET_KEY = str(b64encode(token_bytes(32)).decode())
|
|
||||||
|
@ -46,8 +46,9 @@ services:
|
|||||||
- 3000:8080
|
- 3000:8080
|
||||||
environment:
|
environment:
|
||||||
- "OLLAMA_API_BASE_URL=http://ollama:11434/api"
|
- "OLLAMA_API_BASE_URL=http://ollama:11434/api"
|
||||||
- "WEBUI_DB_URL=mongodb://root:example@ollama-webui-db:27017/"
|
|
||||||
- "WEBUI_AUTH=TRUE"
|
- "WEBUI_AUTH=TRUE"
|
||||||
|
- "WEBUI_DB_URL=mongodb://root:example@ollama-webui-db:27017/"
|
||||||
|
- "WEBUI_JWT_SECRET_KEY=SECRET_KEY"
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- host.docker.internal:host-gateway
|
- host.docker.internal:host-gateway
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
Loading…
Reference in New Issue
Block a user