Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (41 loc) · 1.71 KB
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (41 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
services:
shadowai:
build: .
image: shadowai:latest
container_name: shadowai
restart: unless-stopped
ports:
- "${SHADOWAI_PORT:-9090}:9090"
volumes:
# Persistent data: chat histories, personality.md, memory.md, and config.json
- shadowai-data:/app/data
# Linux hosts: share timezone with the container (optional bind mounts).
# On Windows / Docker Desktop these paths usually do not exist — leave commented out.
# - /etc/localtime:/etc/localtime:ro
# - /etc/timezone:/etc/timezone:ro
environment:
# Bind on all interfaces inside the container so host port mapping works.
- HOST=0.0.0.0
- PORT=9090
# Host port published by docker-compose (left side of ports: mapping above).
- SHADOWAI_PORT=${SHADOWAI_PORT:-9090}
# --- Ollama ---
# Point to your Ollama instance.
# On Docker Desktop (Mac/Windows): use host.docker.internal
# On Linux with Docker Engine: use 172.17.0.1 or your host's LAN IP
- OLLAMA_URL=http://host.docker.internal:11434
- OLLAMA_MODEL=llama3.2
# --- Auth ---
# Set ADMIN_PASSWORD on first run to initialise the password.
# After that you can manage it via the Config page and remove this line
# (if left set, it overrides the stored password on every restart).
- ADMIN_USER=admin
# - ADMIN_PASSWORD=changeme
# --- Web Search (optional) ---
# Uncomment and set your SearXNG URL to enable the web_search tool.
# - SEARXNG_URL=http://host.docker.internal:8080
# Allows host.docker.internal to resolve on Linux (no-op on Docker Desktop)
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
shadowai-data: