Refactor Dockerfile and scripts for improved WOL configuration and error handling

This commit is contained in:
Bastian (BaM)
2025-09-13 19:45:00 +02:00
parent c33a948b80
commit 6b8df2ea56
3 changed files with 25 additions and 15 deletions

View File

@@ -2,19 +2,16 @@ services:
auto-boot-ollama-host:
build: .
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"
# WOL_MAC: "AA:BB:CC:DD:EE:FF"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
WOL_MAC: "AA:BB:CC:DD:EE:FF" # set this
#WOL_BCAST: "192.168.222.255" # optional (defaults unten)
#WOL_PORT: "9" # optional
restart: unless-stopped
# Optional: network if you need special routing to OLLAMA_HOST
# networks:
# - hostnet
# networks:
# hostnet:
# external: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro