Docker Compose Contract: New Host
Branch: 141-server-consolidation | Date: 2026-06-20
This contract defines the service topology for the consolidated single-host deployment.
The actual docker-compose.new-host.yml will be created at:
specs/04-Infrastructure-OPS/04-00-docker-compose/New-Host/docker-compose.new-host.yml
Service Topology
| Service |
Image |
Networks |
LAN Ports |
Internal Port |
Memory Limit |
Depends On |
| ollama |
ollama/ollama:latest |
dms-internal |
none |
11434 |
2G (host) |
— |
| ocr-sidecar |
build (local) |
dms-internal |
none |
8765 |
1G |
ollama |
| backend |
lcbp3-backend:latest |
dms-internal, dms-frontend |
3001→3000 |
3000 |
2G |
ollama, ocr-sidecar, redis, mariadb, elasticsearch, qdrant, clamav |
| frontend |
lcbp3-frontend:latest |
dms-frontend |
3000 |
3000 |
1G |
backend |
| redis |
redis:7-alpine |
dms-internal |
none |
6379 |
1G |
— |
| mariadb |
mariadb:11.8 |
dms-internal |
none |
3306 |
8G |
— |
| elasticsearch |
elasticsearch:8.11.1 |
dms-internal |
none |
9200 |
4G |
— |
| qdrant |
qdrant/qdrant:v1.16.1 |
dms-internal |
none |
6333 |
1G |
— |
| clamav |
clamav/clamav:1.4.4 |
dms-internal |
none |
3310 |
2G |
— |
| ollama-metrics |
ghcr.io/norskhelsenett/ollama-metrics:latest |
dms-internal |
9924 |
9924 |
256M |
ollama |
Network Topology
Environment Variables (New)
| Variable |
Default |
Description |
| ASUSTOR_USER |
(required) |
CIFS share username |
| ASUSTOR_PASS |
(required) |
CIFS share password |
| NEW_HOST_IP |
(required) |
New host LAN IP for CI/CD deploy target |
Environment Variables (Changed from QNAP)
Removed Environment Variables
| Variable |
Reason |
| OCR_SIDECAR_API_KEY |
ADR-040 D5 — network-only auth, no API key needed |
| OCR_SIDECAR_UPLOAD_BASE |
Still needed but value changes to /mnt/uploads (same) |