mirror of
https://github.com/TauricResearch/TradingAgents.git
synced 2026-09-27 15:02:39 +03:00
- both compose services mount ${TRADINGAGENTS_DATA_DIR:-tradingagents_data}; unset keeps the named volume
- README and .env.example show the setting
37 lines
726 B
YAML
37 lines
726 B
YAML
services:
|
|
tradingagents:
|
|
build: .
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- ${TRADINGAGENTS_DATA_DIR:-tradingagents_data}:/home/appuser/.tradingagents
|
|
tty: true
|
|
stdin_open: true
|
|
|
|
ollama:
|
|
image: ollama/ollama:latest
|
|
volumes:
|
|
- ollama_data:/root/.ollama
|
|
profiles:
|
|
- ollama
|
|
|
|
tradingagents-ollama:
|
|
build: .
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- TRADINGAGENTS_LLM_PROVIDER=ollama
|
|
- OLLAMA_BASE_URL=http://ollama:11434/v1
|
|
volumes:
|
|
- ${TRADINGAGENTS_DATA_DIR:-tradingagents_data}:/home/appuser/.tradingagents
|
|
depends_on:
|
|
- ollama
|
|
tty: true
|
|
stdin_open: true
|
|
profiles:
|
|
- ollama
|
|
|
|
volumes:
|
|
tradingagents_data:
|
|
ollama_data:
|