feat: NanoClaude 프로덕션 통합 — Docker, Caddy, aiosqlite 로깅

- docker-compose에 nanoclaude 서비스 추가 (포트 8100)
- Caddy /nano/* → nanoclaude 리버스 프록시 (SSE flush)
- aiosqlite 요청/응답 로깅 (request_logs 테이블)
- .env.example, CLAUDE.md 업데이트

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-04-06 11:19:15 +09:00
parent 1e427bc98a
commit e970ebdbea
10 changed files with 122 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ services:
depends_on:
- hub-api
- hub-web
- nanoclaude
networks:
- gateway-net
@@ -46,9 +47,31 @@ services:
networks:
- gateway-net
nanoclaude:
build: ./nanoclaude
container_name: gpu-nanoclaude
restart: unless-stopped
environment:
- EXAONE_BASE_URL=http://host.docker.internal:11434
- EXAONE_MODEL=${EXAONE_MODEL:-exaone3.5:7.8b-instruct-q8_0}
- DB_PATH=/app/data/nanoclaude.db
- API_KEY=${NANOCLAUDE_API_KEY:-}
volumes:
- nano_data:/app/data
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8100/health"]
interval: 15s
timeout: 5s
retries: 3
networks:
- gateway-net
volumes:
caddy_data:
hub_data:
nano_data:
networks:
gateway-net: