- Remove hardcoded OpenRouter API key and URL from docker-compose.yml - App service now reads OPENAI_* vars from .env file (env_file) and falls back to http://ollama:11434/v1 defaults - Ollama and model-init moved to 'ollama' Docker Compose profile, so they only start when explicitly requested: docker compose --profile ollama up # with local Ollama docker compose up # cloud provider only - Port mapping uses 5656 from .env - .env.docker updated with documented options for Ollama vs OpenRouter
21 lines
990 B
Docker
21 lines
990 B
Docker
# ──────────────────────────────────────────────
|
|
# English Style Converter — Docker Configuration
|
|
# ──────────────────────────────────────────────
|
|
#
|
|
# Copy this file to .env and uncomment the profile you want.
|
|
# Or just set the three OPENAI_* vars for any provider.
|
|
|
|
# ── Option A: Ollama (local, free) ────────────
|
|
# Run: docker compose --profile ollama up
|
|
# OPENAI_BASE_URL=http://ollama:11434/v1
|
|
# OPENAI_API_KEY=ollama
|
|
# OLLAMA_MODEL=llama3
|
|
# OPENAI_MODEL=${OLLAMA_MODEL}
|
|
|
|
# ── Option B: OpenRouter (cloud, free tier) ───
|
|
OPENAI_BASE_URL=https://openrouter.ai/api/v1
|
|
OPENAI_API_KEY=sk-or-v1-YOUR_KEY_HERE
|
|
OPENAI_MODEL=openrouter/free
|
|
|
|
# ── Port mapping ──────────────────────────────
|
|
APP_PORT=5656 |