Files
exAichatbot_agent/local-dev/docker-compose.rag.local.yml
T
2026-08-13 13:38:36 +09:00

54 lines
1.4 KiB
YAML
Executable File

# 로컬 Mac 개발용 (start-all.sh / stop-all.sh)
# - network_mode:host 미사용 → :28012 / :28013 호스트 바인딩
# - Mongo / Qdrant 는 stock.exdev.co.kr (로컬 컨테이너 미기동)
# - AI 는 host.docker.internal 경유 SSH 터널 (.env)
name: exchatbot-local
services:
api:
image: ${RAG_API_IMAGE:-rag-api-slim:latest}
build:
context: .
dockerfile: docker/service-slim.Dockerfile
ports:
- "${RAG_API_PORT:-28012}:28012"
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- .env
environment:
UVICORN_WORKERS: "${UVICORN_WORKERS:-2}"
volumes:
- ./data:/app/data
- ./scripts:/app/scripts
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:28012/health"]
interval: 10s
timeout: 10s
retries: 12
start_period: 45s
admin:
image: ${RAG_API_IMAGE:-rag-api-slim:latest}
ports:
- "${ADMIN_PORT:-28013}:28013"
extra_hosts:
- "host.docker.internal:host-gateway"
command:
- python
- -m
- uvicorn
- scripts.admin_service:app
- --host
- 0.0.0.0
- --port
- "28013"
working_dir: /app
env_file:
- .env
volumes:
- ./data:/app/data
- ./scripts:/app/scripts
restart: unless-stopped