Files
syn-chat-bot/docker-compose.yml
hyungi 612933c2d3 Phase 5-6: API usage tracking + Calendar/Mail/DEVONthink/OmniFocus/News pipeline
- 파이프라인 42→51노드 확장 (calendar/mail/note 핸들러 추가)
- 네이티브 서비스 6개: heic_converter(:8090), chat_bridge(:8091),
  caldav_bridge(:8092), devonthink_bridge(:8093), inbox_processor, news_digest
- 분류기 v2→v3: calendar, reminder, mail, note intent 추가
- Mail Processing Pipeline (7노드, IMAP 폴링)
- LaunchAgent plist 6개 + manage_services.sh
- migrate-v3.sql: news_digest_log + calendar_events 확장
- 개발 문서 현행화 (CLAUDE.md, QUICK_REFERENCE.md, docs/architecture.md)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 17:09:04 +09:00

70 lines
2.2 KiB
YAML

services:
bot-n8n:
image: n8nio/n8n:latest
container_name: bot-n8n
restart: unless-stopped
ports:
- "5678:5678"
environment:
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=${N8N_BASIC_AUTH_USER}
- N8N_BASIC_AUTH_PASSWORD=${N8N_BASIC_AUTH_PASSWORD}
- N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY}
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=bot-postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
- DB_POSTGRESDB_USER=${POSTGRES_USER}
- DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}
- N8N_BLOCK_ENV_ACCESS_IN_NODE=false
- N8N_HOST=0.0.0.0
- WEBHOOK_URL=http://localhost:5678/
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- SYNOLOGY_CHAT_WEBHOOK_URL=${SYNOLOGY_CHAT_WEBHOOK_URL}
- SYNOLOGY_CHAT_TOKEN=${SYNOLOGY_CHAT_TOKEN}
- ADMIN_USERNAMES=${ADMIN_USERNAMES}
- API_BUDGET_HEAVY=${API_BUDGET_HEAVY}
- API_BUDGET_LIGHT=${API_BUDGET_LIGHT}
- LOCAL_OLLAMA_URL=${LOCAL_OLLAMA_URL}
- GPU_OLLAMA_URL=${GPU_OLLAMA_URL}
- QDRANT_URL=${QDRANT_URL:-http://host.docker.internal:6333}
- HEIC_CONVERTER_URL=http://host.docker.internal:8090
- CHAT_BRIDGE_URL=http://host.docker.internal:8091
- CALDAV_BRIDGE_URL=http://host.docker.internal:8092
- DEVONTHINK_BRIDGE_URL=http://host.docker.internal:8093
- NODE_FUNCTION_ALLOW_BUILTIN=crypto,http,https,url
volumes:
- ./n8n/data:/home/node/.n8n
networks:
- bot-network
depends_on:
bot-postgres:
condition: service_healthy
extra_hosts:
- "host.docker.internal:host-gateway"
bot-postgres:
image: postgres:16-alpine
container_name: bot-postgres
restart: unless-stopped
ports:
- "127.0.0.1:15478:5432"
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- ./postgres/data:/var/lib/postgresql/data
- ./init:/docker-entrypoint-initdb.d
networks:
- bot-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5
networks:
bot-network:
driver: bridge