-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (81 loc) · 2.44 KB
/
docker-compose.yml
File metadata and controls
91 lines (81 loc) · 2.44 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
services:
montscan:
build: .
container_name: montscan
restart: unless-stopped
ports:
- "21:21"
- "21000-21010:21000-21010"
environment:
# FTP server settings
- FTP_ENABLED=${FTP_ENABLED:-true}
- FTP_HOST=0.0.0.0
- FTP_PORT=21
- FTP_USERNAME=scanner
- FTP_PASSWORD=${FTP_PASSWORD:-scanner123}
- FTP_UPLOAD_DIR=/app/scans
# SMB/CIFS (Samba) settings
- SAMBA_SERVER_ENABLED=${SAMBA_SERVER_ENABLED:-false}
- SAMBA_SERVER_HOST=${SAMBA_SERVER_HOST:-127.0.0.1}
- SAMBA_SERVER_PORT=${SAMBA_SERVER_PORT:-445}
- SAMBA_SERVER_USERNAME=${SAMBA_SERVER_USERNAME:-}
- SAMBA_SERVER_PASSWORD=${SAMBA_SERVER_PASSWORD:-}
- SAMBA_SERVER_SHARE=${SAMBA_SERVER_SHARE:-scans}
- SAMBA_SERVER_PATH=${SAMBA_SERVER_PATH:-/scans}
- SAMBA_SERVER_POLL_INTERVAL_SEC=${SAMBA_SERVER_POLL_INTERVAL_SEC:-10}
- SAMBA_SERVER_DELETE_AFTER_READ=${SAMBA_SERVER_DELETE_AFTER_READ:-true}
- SAMBA_SERVER_WORK_DIR=${SAMBA_SERVER_WORK_DIR:-/app/scans}
# WebDAV settings
- WEBDAV_ENABLED=${WEBDAV_ENABLED:-false}
- WEBDAV_URL=${WEBDAV_URL}
- WEBDAV_USERNAME=${WEBDAV_USERNAME}
- WEBDAV_PASSWORD=${WEBDAV_PASSWORD}
- WEBDAV_INSECURE=${WEBDAV_INSECURE:-false}
- WEBDAV_UPLOAD_PATH=${WEBDAV_UPLOAD_PATH:-/Scans}
# LLM settings
- OLLAMA_HOST=${OLLAMA_HOST:-http://host.docker.internal:11434}
- OLLAMA_MODEL=${OLLAMA_MODEL:-llava}
# Prompt settings
- LANGUAGE=${LANGUAGE:-English}
volumes:
- ./scans:/app/scans
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- montscan-network
ollama:
image: ollama/ollama:latest
container_name: ollama
restart: unless-stopped
ports:
- "11434:11434"
environment:
- OLLAMA_MODEL=${OLLAMA_MODEL:-llava}
volumes:
- ollama-data:/root/.ollama
networks:
- montscan-network
entrypoint:
- /bin/sh
- -lc
- |
ollama serve &
pid=$!
echo "Waiting for Ollama to start..."
sleep 5
echo "Pulling model: $OLLAMA_MODEL"
ollama pull "$OLLAMA_MODEL"
wait $pid
# Uncomment if you have NVIDIA GPU
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
volumes:
ollama-data:
networks:
montscan-network:
driver: bridge