Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# repowise — multi-stage Docker build (backend + frontend)
# =============================================================================
# Usage:
# docker build -t repowise .
# docker build -t repowise -f docker/Dockerfile .
# docker run -p 7337:7337 -p 3000:3000 -v /path/to/repo/.repowise:/data -e GEMINI_API_KEY=... repowise
# =============================================================================

Expand Down Expand Up @@ -48,13 +48,13 @@ RUN pip install --no-cache-dir ".[all]"
# Copy built Next.js standalone output
COPY --from=frontend-builder /app/.next/standalone /app/web
COPY --from=frontend-builder /app/.next/static /app/web/.next/static
COPY --from=frontend-builder /app/public /app/web/public 2>/dev/null || true
COPY --from=frontend-builder /app/public /app/web/public

# Data volume for .repowise directory
VOLUME /data

# Environment defaults
ENV REPOWISE_DB_URL=sqlite+aiosqlite:///data/wiki.db
ENV REPOWISE_DB_URL=sqlite+aiosqlite:////data/wiki.db
ENV REPOWISE_EMBEDDER=mock
ENV PORT_BACKEND=7337
ENV PORT_FRONTEND=3000
Expand Down
5 changes: 3 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Run the full repowise stack (API + Web UI) in a single container.
## Quick Start

```bash
docker build -t repowise .
# Run from the project root
docker build -t repowise -f docker/Dockerfile .

# Run with a mounted .repowise directory
docker run -p 7337:7337 -p 3000:3000 \
Expand All @@ -36,7 +37,7 @@ docker compose up

| Variable | Default | Description |
|----------|---------|-------------|
| `REPOWISE_DB_URL` | `sqlite+aiosqlite:///data/wiki.db` | Database URL |
| `REPOWISE_DB_URL` | `sqlite+aiosqlite:////data/wiki.db` | Database URL |
| `REPOWISE_EMBEDDER` | `mock` | Embedder: `gemini`, `openai`, `mock` |
| `ANTHROPIC_API_KEY` | — | Anthropic API key (for chat) |
| `OPENAI_API_KEY` | — | OpenAI API key (for chat) |
Expand Down
6 changes: 4 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
services:
repowise:
build: .
build:
context: ..
dockerfile: docker/Dockerfile
ports:
- "7337:7337" # API
- "3000:3000" # Web UI
volumes:
# Mount the .repowise directory from your indexed repo
- ${REPOWISE_DATA:-./data}:/data
environment:
- REPOWISE_DB_URL=sqlite+aiosqlite:///data/wiki.db
- REPOWISE_DB_URL=sqlite+aiosqlite:////data/wiki.db
- REPOWISE_EMBEDDER=${REPOWISE_EMBEDDER:-mock}
# Set your LLM provider API key
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
Expand Down
4 changes: 3 additions & 1 deletion docs/QUICKSTART.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ To skip the web UI and only run the API: `repowise serve --no-ui`
### With Docker (no Node.js needed)

```bash
docker build -t repowise https://github.com/RaghavChamadiya/repowise.git
git clone https://github.com/repowise-dev/repowise.git
cd repowise
docker build -t repowise -f docker/Dockerfile .

docker run -p 7337:7337 -p 3000:3000 \
-v /path/to/your-repo/.repowise:/data \
Expand Down
9 changes: 6 additions & 3 deletions docs/USER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -565,8 +565,11 @@ On first run, the pre-built frontend is downloaded (~50 MB) and cached in `~/.re
### Docker (no Node.js needed)

```bash
git clone https://github.com/repowise-dev/repowise.git
cd repowise

# Build the image (one-time)
docker build -t repowise https://github.com/RaghavChamadiya/repowise.git
docker build -t repowise -f docker/Dockerfile .

# Run with your indexed repo's .repowise directory
docker run -p 7337:7337 -p 3000:3000 \
Expand All @@ -579,11 +582,11 @@ docker run -p 7337:7337 -p 3000:3000 \
Or with docker compose:

```bash
git clone https://github.com/RaghavChamadiya/repowise.git
git clone https://github.com/repowise-dev/repowise.git
cd repowise
export REPOWISE_DATA=/path/to/your-repo/.repowise
export GEMINI_API_KEY=your-key
docker compose up
docker compose -f docker/docker-compose.yml up
```

Open **http://localhost:3000** for the Web UI, **http://localhost:7337** for the API.
Expand Down