17 lines
672 B
Bash
17 lines
672 B
Bash
#!/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 |