Files
Ombre_Brain/docker-compose.yml

49 lines
1.8 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ============================================================
# Ombre Brain Docker Compose
# Docker Compose 配置
#
# Usage / 使用:
# 1. Create .env: echo "OMBRE_API_KEY=your-key" > .env
# 创建 .env 文件
# 2. docker-compose up -d
# 3. docker compose logs tunnel (for public URL / 查看公网地址)
# ============================================================
services:
ombre-brain:
build: .
container_name: ombre-brain
restart: unless-stopped
ports:
- "18001:8000" # Local debug port (optional) / 本地调试端口
environment:
- OMBRE_API_KEY=${OMBRE_API_KEY} # From .env file / 从 .env 文件读取
- OMBRE_TRANSPORT=streamable-http # Claude.ai requires streamable-http
- OMBRE_BUCKETS_DIR=/data # Container-internal bucket path / 容器内路径
volumes:
# Mount your Obsidian vault (or any host directory) for persistent storage
# 挂载你的 Obsidian 仓库(或任意宿主机目录)做持久化存储
# Example / 示例:
# - /path/to/your/Obsidian Vault/Ombre Brain:/data
- /Users/p0lar1s/Library/Mobile Documents/iCloud~md~obsidian/Documents/Obsidian Vault/Ombre Brain:/data
- ./config.yaml:/app/config.yaml
# Cloudflare Tunnel (optional) — expose to public internet
# Cloudflare Tunnel可选— 暴露到公网
# Configure your own credentials under ~/.cloudflared/
# 在 ~/.cloudflared/ 下放你自己的凭证
tunnel:
image: cloudflare/cloudflared:latest
container_name: ombre-tunnel
restart: unless-stopped
command: >
tunnel --no-autoupdate --protocol http2
--config /etc/cloudflared/config.yml
--proxy-keepalive-timeout 300s
--proxy-connection-timeout 300s
run
volumes:
- ~/.cloudflared:/etc/cloudflared
depends_on:
- ombre-brain