Containerize MCP tool services
This commit is contained in:
+5
-1
@@ -232,7 +232,7 @@ set -euo pipefail
|
||||
WG=$WG_INTERFACE
|
||||
HOME_NET=$WG_HOME_SUBNET
|
||||
TABLE=51820
|
||||
for NET in 172.30.10.0/24 172.30.30.0/24 172.30.40.0/24; do
|
||||
for NET in 172.30.10.0/24 172.30.30.0/24 172.30.40.0/24 172.30.50.0/24; do
|
||||
ip rule add from \"\$NET\" table \"\$TABLE\" priority 12000 2>/dev/null || true
|
||||
done
|
||||
ip route replace \"\$HOME_NET\" dev \"\$WG\"
|
||||
@@ -280,6 +280,10 @@ build_and_start() {
|
||||
cd "$STACK_DIR"
|
||||
docker build --build-arg LLAMA_CPP_COMMIT="$commit" \
|
||||
-f platform/docker/llama-cpp/Dockerfile -t mike-ai/llama.cpp:local .
|
||||
# Creates the shared internal tools network before Open WebUI is created.
|
||||
# Web search always starts; HA/ARR/Unraid only start when their root-only
|
||||
# secret files and required local artifacts are present.
|
||||
"$STACK_DIR/platform/mcp/install-tools.sh"
|
||||
docker compose --env-file "$SECRETS_DIR/stack.env" --profile inference create \
|
||||
llama-fast llama-medium llama-long llama-experimental
|
||||
docker compose --env-file "$SECRETS_DIR/stack.env" up -d --build \
|
||||
|
||||
Reference in New Issue
Block a user