-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (41 loc) · 1.57 KB
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (41 loc) · 1.57 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
services:
unraid-monitor-bot:
build:
context: .
args:
# DOCKER_GID must match docker.sock group on host for non-root access
# Default 281 works for Unraid. For other systems:
# 1. Find your GID: ls -ln /var/run/docker.sock (4th column)
# 2. Set DOCKER_GID in .env or export before building
# 3. Rebuild: docker-compose build --no-cache
DOCKER_GID: ${DOCKER_GID:-281}
container_name: unraid-monitor-bot
restart: unless-stopped
environment:
- PUID=${PUID:-99}
- PGID=${PGID:-100}
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
- TELEGRAM_ALLOWED_USERS=${TELEGRAM_ALLOWED_USERS}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- OLLAMA_HOST=${OLLAMA_HOST:-}
- DEFAULT_MODEL=${DEFAULT_MODEL:-}
- UNRAID_API_KEY=${UNRAID_API_KEY:-}
- TZ=Europe/London
volumes:
# SECURITY NOTE: Docker socket grants root-equivalent access to the host.
# The :ro flag only prevents deletion of the socket file, not API access.
# For hardened setups, consider using tecnativa/docker-socket-proxy to
# restrict exposed Docker API endpoints.
- /var/run/docker.sock:/var/run/docker.sock:ro
# For development, use local directories:
# - ./config:/app/config:ro
# - ./data:/app/data
# For production on Unraid, use bind mounts:
- /mnt/user/appdata/unraid-monitor/config:/app/config
- /mnt/user/appdata/unraid-monitor/data:/app/data
networks:
- docknet
networks:
docknet:
external: true