Files
Business-Management/docker-compose.dev.yml
T
curo1305 52a2967f61 Dev AI config: env var overrides in config_reader, LM Studio via .env
config_reader.py now merges environment variables (AI_PROVIDER,
LMSTUDIO_BASE_URL, LMSTUDIO_API_KEY, LMSTUDIO_MODEL, OLLAMA_*,
ANTHROPIC_*) on top of the JSON config file, so the dev .env file
can pin the AI connection without writing to the shared config volume.

docker-compose.dev.yml loads features/doc-service/.env (gitignored)
into the doc-service container so the token is never committed.

.env.example updated with all supported override variables and comments.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 11:48:15 +02:00

31 lines
792 B
YAML

# Development overrides — hot reload for backend and frontend
# Usage: docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build
services:
backend:
user: "1001:1001"
command: sh scripts/start_dev.sh
volumes:
- ./backend:/app
frontend:
build:
context: ./frontend
target: builder # stop at the Node stage, skip nginx
user: "1001:1001"
command: npm run dev -- --host 0.0.0.0
ports:
- "5173:5173"
environment:
VITE_API_TARGET: http://backend:8000
volumes:
- ./frontend:/app
- /app/node_modules
doc-service:
command: sh scripts/start_dev.sh
env_file: ./features/doc-service/.env # gitignored — holds local AI credentials
volumes:
- ./features/doc-service:/app