forked from open-webui/open-webui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add flow configuration, upstream sync workflow
- Loading branch information
1 parent
eb51ad1
commit 47acdbf
Showing
3 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: sync-fork | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: {} | ||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- run: gh repo sync $REPOSITORY -b $BRANCH_NAME | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
REPOSITORY: ${{ github.repository }} | ||
BRANCH_NAME: ${{ github.ref_name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
kind: live | ||
title: My flow | ||
|
||
defaults: | ||
life_span: 1d | ||
|
||
images: | ||
ollama_public: | ||
ref: ollama/ollama | ||
open_webui: | ||
ref: image:${{ project.project_name }}/$[[ flow.project_id ]]/openwebui | ||
context: ${{ flow.workspace }}/ | ||
dockerfile: ${{ flow.workspace }}/Dockerfile | ||
|
||
volumes: | ||
data: | ||
remote: storage:/$[[ project.project_name ]]/$[[ flow.project_id ]]/data | ||
mount: /root/.ollama | ||
local: data | ||
webdata: | ||
remote: storage:/$[[ project.project_name ]]/$[[ flow.project_id ]]/web | ||
mount: /app/backend/data | ||
local: webdata | ||
|
||
jobs: | ||
ollama_bash: | ||
image: $[[ images.ollama_public.ref ]] | ||
life_span: 1d | ||
volumes: | ||
- $[[ volumes.data.ref_ro ]] | ||
entrypoint: bash | ||
|
||
ollama_worker: | ||
image: $[[ images.ollama_public.ref ]] | ||
life_span: 10d | ||
detach: true | ||
preset: gpu-small | ||
volumes: | ||
- $[[ volumes.data.ref_rw ]] | ||
|
||
web: | ||
image: ${{ images.open_webui.ref }} | ||
volumes: | ||
- ${{ volumes.webdata.ref_rw }} | ||
http_port: 8080 | ||
preset: cpu-small | ||
detach: true | ||
env: | ||
OLLAMA_API_BASE_URL: http://${{ inspect_job('ollama_worker').internal_hostname_named }}:11434/api | ||
WEBUI_SECRET_KEY: "neuro" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
## Check our full reference documentation at https://neu-ro.gitbook.io/neuro-flow/reference/project-configuration-syntax | ||
id: ollama_server | ||
## Could be referenced as $[[ project.id ]] or $[[ flow.project_id ]] contexts. | ||
## Default value: name of the folder containing `.neuro` | ||
# project_name: ollama | ||
## Optional platform project name that owns the flow, referenced via $[[ project.project_name ]] |