docs: update README for docker & docker-compose

This commit is contained in:
scarletsky
2025-11-03 12:45:07 +08:00
parent 5e5a1fdc84
commit ea5f34d616

View File

@@ -63,6 +63,40 @@ claude-code-viewer
The server will start on port 3400 (or your specified PORT). Open `http://localhost:3400` in your browser to access the interface.
### Docker Deployment
Build the image locally:
```bash
docker build -t claude-code-viewer .
```
Run the container directly:
```bash
docker run --rm -p 3400:3400 \
-e ANTHROPIC_BASE_URL=... \
-e ANTHROPIC_API_KEY=... \
-e ANTHROPIC_AUTH_TOKEN=... \
claude-code-viewer
```
Alternatively, use the provided Compose configuration:
```bash
docker compose up --build
```
> Note: `docker-compose.yml` ships without mounting `claude_home` by default. If you need the container to reuse an existing Claude workspace, map a volume to `/root/.claude`, for example:
>
> ```yaml
> services:
> app:
> volumes:
> - /path/to/claude_home:/root/.claude
> ```
## Data Source
The application reads Claude Code conversation logs from: