Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
99e8816e
Commit
99e8816e
authored
Nov 19, 2023
by
Timothy J. Baek
Browse files
feat: docker for multi-user support updated
parent
dedb4258
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Dockerfile
Dockerfile
+3
-0
backend/config.py
backend/config.py
+0
-4
compose.yaml
compose.yaml
+2
-1
No files found.
Dockerfile
View file @
99e8816e
...
...
@@ -22,6 +22,9 @@ ARG OLLAMA_API_BASE_URL='/ollama/api'
ENV
ENV=prod
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
COPY
--from=build /app/build /app/build
...
...
backend/config.py
View file @
99e8816e
...
...
@@ -55,7 +55,3 @@ if WEBUI_AUTH:
####################################
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
())
compose.yaml
View file @
99e8816e
...
...
@@ -46,8 +46,9 @@ services:
-
3000:8080
environment
:
-
"
OLLAMA_API_BASE_URL=http://ollama:11434/api"
-
"
WEBUI_DB_URL=mongodb://root:example@ollama-webui-db:27017/"
-
"
WEBUI_AUTH=TRUE"
-
"
WEBUI_DB_URL=mongodb://root:example@ollama-webui-db:27017/"
-
"
WEBUI_JWT_SECRET_KEY=SECRET_KEY"
extra_hosts
:
-
host.docker.internal:host-gateway
restart
:
unless-stopped
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment