Skip to content

feat(docker): resource limits + production hardening (#1897)#1930

Merged
mrveiss merged 2 commits intoDev_new_guifrom
fix/issue-1897
Mar 20, 2026
Merged

feat(docker): resource limits + production hardening (#1897)#1930
mrveiss merged 2 commits intoDev_new_guifrom
fix/issue-1897

Conversation

@mrveiss
Copy link
Owner

@mrveiss mrveiss commented Mar 19, 2026

Summary

  • Added memory/CPU resource limits to all 9 services
  • Added log rotation (json-file driver, 50MB max, 5 files)
  • Restricted RedisInsight UI to localhost (was exposed to all interfaces)
  • Split flat autobot network into autobot-data + autobot-app tiers
  • Added no-new-privileges security option to all containers

Closes #1897

Test plan

  • Run docker compose config — verify YAML is valid
  • Run docker compose up -d — verify all services start
  • Verify RedisInsight only accessible from localhost
  • Verify containers respect memory limits: docker stats

@github-actions
Copy link

✅ SSOT Configuration Compliance: Passing

🎉 No hardcoded values detected that have SSOT config equivalents!

mrveiss added 2 commits March 20, 2026 15:24
…tion (#1897)

- Add memory/CPU limits to all 9 services
- Add json-file log rotation (50MB max, 5 files)
- Bind RedisInsight to localhost only (was exposed to all interfaces)
- Split flat network into autobot-data + autobot-app tiers
- Add no-new-privileges security option to all containers
- Bind internal ports to localhost (postgres, chromadb, ollama,
  prometheus, grafana) — only frontend 80/443 and redis remain public
- Ollama memory 4G→8G (7B models need ~5.5GB + runtime overhead)
- Add YAML anchor for logging config (9 blocks → 1 definition)
- Add health checks for Prometheus and Grafana
- Note Compose v2+ requirement in file header
@mrveiss mrveiss merged commit 3673776 into Dev_new_gui Mar 20, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant