- Add ia_dev submodule (projects/smart_ide on forge 4nk) - Document APIs, orchestrator, gateway, local-office, rollout - Add systemd/scripts layout; relocate setup scripts - Remove obsolete nginx/enso-only docs from this repo scope
24 lines
699 B
Bash
Executable File
24 lines
699 B
Bash
Executable File
#!/bin/bash
|
|
# Run AnythingLLM container in foreground (for systemd Type=simple).
|
|
# Environment: ANYTHINGLLM_STORAGE, ANYTHINGLLM_PORT, ANYTHINGLLM_IMAGE, ANYTHINGLLM_NAME
|
|
|
|
set -euo pipefail
|
|
|
|
STORAGE="${ANYTHINGLLM_STORAGE:-/home/ncantu/anythingllm}"
|
|
PORT="${ANYTHINGLLM_PORT:-3001}"
|
|
IMAGE="${ANYTHINGLLM_IMAGE:-mintplexlabs/anythingllm}"
|
|
NAME="${ANYTHINGLLM_NAME:-anythingllm}"
|
|
|
|
mkdir -p "${STORAGE}"
|
|
touch "${STORAGE}/.env"
|
|
|
|
exec docker run --rm \
|
|
--name "${NAME}" \
|
|
-p "${PORT}:3001" \
|
|
--cap-add SYS_ADMIN \
|
|
--add-host=host.docker.internal:host-gateway \
|
|
-v "${STORAGE}:/app/server/storage" \
|
|
-v "${STORAGE}/.env:/app/server/.env" \
|
|
-e STORAGE_DIR=/app/server/storage \
|
|
"${IMAGE}"
|