...
This commit is contained in:
17
ansible/roles/ai_at_home/files/runme.sh
Normal file
17
ansible/roles/ai_at_home/files/runme.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -a
|
||||
|
||||
CONFIG_FILE=$(dirname "$(readlink -f "$0")")/aiathome.config
|
||||
OLLAMA_COMPOSEFILE=${OLLAMA_COMPOSEFILE:-/opt/ollama/compose/composefile.yml}
|
||||
OPENWEBUI_COMPOSEFILE=${OPENWEBUI_COMPOSEFILE:-/opt/openwebui/compose/composefile.yml}
|
||||
|
||||
[[ -f ${CONFIG_FILE} ]] && source ${CONFIG_FILE}
|
||||
|
||||
docker compose -f ${OLLAMA_COMPOSEFILE} up -d
|
||||
docker compose -f ${OPENWEBUI_COMPOSEFILE} up -d
|
||||
|
||||
# TODO: Create a stack based on the config and define multiple backends...
|
||||
# Launch Backends on Demand instead of just using ollama...
|
||||
# Maybe with the traefik middleware? https://plugins.traefik.io/plugins/6715d1d37dd5a6c3095befd4/sablier
|
||||
#https://github.com/sablierapp/sablier
|
||||
Reference in New Issue
Block a user