27 lines
1.2 KiB
YAML
27 lines
1.2 KiB
YAML
version: '3.8' # Specify a version
|
|
|
|
services:
|
|
app:
|
|
build: . # Use the Dockerfile in the current directory
|
|
volumes:
|
|
- .:/app # Mount current directory to /app in container for live code changes
|
|
- ./.ollama:/app/.ollama # Cache Ollama models
|
|
#environment:
|
|
# - LLM_PROVIDER=ollama
|
|
# - LLM_BACKEND_URL=http://localhost:11434/v1
|
|
# - LLM_DEEP_THINK_MODEL=qwen3:0.6b
|
|
# - LLM_QUICK_THINK_MODEL=qwen3:0.6b
|
|
# - MAX_DEBATE_ROUNDS=1
|
|
# - ONLINE_TOOLS=False
|
|
# The default command in the Dockerfile is `python main.py`.
|
|
# For running tests with compose, one can use:
|
|
# docker-compose run --rm app pytest tests/test_main.py
|
|
# Or, we can set a default command here to run tests:
|
|
env_file:
|
|
- .env # Load environment variables from files.env
|
|
#command: python test_ollama_connection.py # Uncomment to run a specific test script
|
|
# If you want `docker-compose up` to run tests and then exit, this command is fine.
|
|
# If you want `docker-compose up` to run main.py, change command or remove it to use Dockerfile's CMD.
|
|
# For more flexibility, users can override the command when using `docker-compose run`.
|
|
ports:
|
|
- "11434:11434" # Expose port 11434 for Ollama |