Integrate LuaJIT as an optional runtime for better performance, with a fallback to standard Lua 5.4. Update Dockerfile to install LuaJIT and create a wrapper script for execution. Enhance network module with socket fallback support and update README to reflect these changes and configuration options.
27 lines
1.0 KiB
YAML
27 lines
1.0 KiB
YAML
services:
|
|
auto-boot-ollama-host:
|
|
build:
|
|
context: .
|
|
args:
|
|
# Build-time only (sourced from your .env)
|
|
SSH_PUBLIC_KEY: "${SSH_PUBLIC_KEY}"
|
|
SSH_PRIVATE_KEY: "${SSH_PRIVATE_KEY}"
|
|
OLLAMA_HOST: "${OLLAMA_HOST:-192.168.222.12}"
|
|
OLLAMA_PORT: "${OLLAMA_PORT:-11434}"
|
|
SINCE: "${SINCE:-0s}"
|
|
container_name: auto-boot-ollama-host
|
|
network_mode: host
|
|
environment:
|
|
CONTAINER_NAME: "${CONTAINER_NAME:-paperless-ai}"
|
|
OLLAMA_HOST: "${OLLAMA_HOST:-192.168.222.12}"
|
|
OLLAMA_PORT: "${OLLAMA_PORT:-11434}"
|
|
SSH_USER: "${SSH_USER:-user}"
|
|
SINCE: "${SINCE:-0s}"
|
|
WOL_MAC: "${WOL_MAC}"
|
|
WOL_BCAST: "${WOL_BCAST:-192.168.222.255}" # optional
|
|
WOL_PORT: "${WOL_PORT:-9}" # optional
|
|
USE_LUAJIT: "${USE_LUAJIT:-true}" # optional: use LuaJIT for better performance (default: true)
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro |