Files
style/.env.docker
Santhosh Janardhanan 70dc396fe3 fix: remove hardcoded secrets from docker-compose, use env vars + profiles
- 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
2026-04-13 01:06:23 -04:00

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