Barazo Docker Compose templates for self-hosting barazo.forum
at main 44 lines 1.2 kB view raw
1# Barazo Global Aggregator -- Docker Compose Override 2# 3# Extends docker-compose.yml for global aggregator mode. 4# The aggregator indexes ALL Barazo communities across the network. 5# 6# Usage: 7# cp .env.example .env 8# # Edit .env: set COMMUNITY_MODE=global, increase resource allocation 9# docker compose -f docker-compose.yml -f docker-compose.global.yml up -d 10# 11# Minimum requirements: 4 vCPU, 8 GB RAM, 100 GB SSD 12# See README.md "Global Aggregator" section for details. 13 14services: 15 # Override API to global mode 16 barazo-api: 17 environment: 18 COMMUNITY_MODE: global 19 # Higher resource limits for indexing all communities 20 mem_limit: 2g 21 cpus: 2.0 22 23 # Larger database for cross-community data 24 postgres: 25 mem_limit: 4g 26 cpus: 2.0 27 # Tune PostgreSQL for higher load 28 command: > 29 postgres 30 -c shared_buffers=1GB 31 -c effective_cache_size=3GB 32 -c work_mem=16MB 33 -c maintenance_work_mem=256MB 34 -c max_connections=200 35 36 # Larger cache for cross-community queries 37 valkey: 38 mem_limit: 1g 39 cpus: 0.5 40 41 # Tap handles full network firehose (higher resource usage) 42 tap: 43 mem_limit: 1g 44 cpus: 1.0