31 lines
785 B
YAML
31 lines
785 B
YAML
services:
|
|
newscast:
|
|
build: .
|
|
container_name: guardian-newscast
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${PORT:-8080}:8080"
|
|
volumes:
|
|
- ./data:/app/data
|
|
environment:
|
|
- OLLAMA_URL=${OLLAMA_URL:-http://host.docker.internal:11434/api/generate}
|
|
- MODEL_NAME=${MODEL_NAME:-gemma4:e2b}
|
|
- PORT=${PORT:-8080}
|
|
- POLL_INTERVAL=${POLL_INTERVAL:-21600}
|
|
- DATA_DIR=/app/data
|
|
- TTS_VOICE=${TTS_VOICE:-af_heart}
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
# Optional: Ollama sidecar for self-contained deployment
|
|
ollama:
|
|
image: ollama/ollama
|
|
container_name: ollama
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./ollama-models:/root/.ollama
|
|
ports:
|
|
- "11434:11434"
|
|
profiles:
|
|
- full
|