feat: docker compose infrastructure — postgres+timescaledb, redis, ollama

This commit is contained in:
Viktor Barzin 2026-02-22 15:11:50 +00:00
parent 0ac9884b89
commit 75c8d5d203
No known key found for this signature in database
GPG key ID: 0EB088298288D958
3 changed files with 100 additions and 0 deletions

23
.env.example Normal file
View file

@ -0,0 +1,23 @@
# PostgreSQL
POSTGRES_PASSWORD=trading
# Trading Bot
TRADING_DATABASE_URL=postgresql+asyncpg://trading:trading@localhost:5432/trading
TRADING_REDIS_URL=redis://localhost:6379/0
TRADING_LOG_LEVEL=INFO
# Alpaca (paper trading)
ALPACA_API_KEY=your_api_key_here
ALPACA_SECRET_KEY=your_secret_key_here
ALPACA_BASE_URL=https://paper-api.alpaca.markets
# JWT
JWT_SECRET_KEY=change-me-in-production
# Reddit (for news fetcher)
REDDIT_CLIENT_ID=your_client_id
REDDIT_CLIENT_SECRET=your_client_secret
REDDIT_USER_AGENT=trading-bot/0.1
# Ollama
OLLAMA_HOST=http://localhost:11434