# deploy/web/.env — runtime secrets for the second-brain-web container. # # Copy this to deploy/web/.env, fill in REPLACE_ME, chmod 0600. The real # .env is gitignored (see deploy/web/.gitignore). Source of truth for # the lovebug password: /opt/backups/postgres-consolidation/credentials.env # on herbys-dev (mode 0600, host-only). # REQUIRED. Containerised connection — the web container reaches Postgres # by docker-network DNS name, NOT via the host's 127.0.0.1:5433 publish. SECOND_BRAIN_DATABASE_URL=postgresql+psycopg://lovebug:REPLACE_ME@homelab-postgres:5432/petalbrain # OPTIONAL. The dashboard does not currently embed search queries, but # the embedding module reads this lazily. Default targets the homelab # `ollama` container. OLLAMA_URL=http://ollama:11434 EMBEDDING_MODEL=nomic-embed-text # OPTIONAL. Pool sizing — single-instance web doesn't need much. # SECOND_BRAIN_DB_POOL_MIN=1 # SECOND_BRAIN_DB_POOL_MAX=4