Refactor environment variable definitions in compose.yaml for consistency and clarity; clean up commented code in auto-boot-ollama-host.sh

This commit is contained in:
Bastian (BaM)
2025-09-13 20:08:48 +02:00
parent 96d2a8c2f1
commit 5772166c44
2 changed files with 11 additions and 17 deletions

View File

@@ -4,14 +4,13 @@ services:
container_name: auto-boot-ollama-host
network_mode: host
environment:
# customize as needed
CONTAINER_NAME: "paperless-ai"
OLLAMA_HOST: "192.168.222.12"
OLLAMA_PORT: "11434"
SINCE: "0s"
CONTAINER_NAME: "${CONTAINER_NAME:-paperless-ai}"
OLLAMA_HOST: "${OLLAMA_HOST:-192.168.222.12}"
OLLAMA_PORT: "${OLLAMA_PORT:-11434}"
SINCE: "${SINCE:-0s}"
WOL_MAC: "${WOL_MAC}"
#WOL_BCAST: "192.168.222.255" # optional (defaults unten)
#WOL_PORT: "9" # optional
WOL_BCAST: "${WOL_BCAST:-192.168.222.255}" # optional
WOL_PORT: "${WOL_PORT:-9}" # optional
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro