Update Readme with docker setup with config
This commit is contained in:
parent
7574829604
commit
33e1fd1a84
1 changed files with 17 additions and 4 deletions
21
README.md
21
README.md
|
|
@ -64,7 +64,13 @@ Claude Code Proxy serves three main purposes:
|
||||||
cd claude-code-proxy
|
cd claude-code-proxy
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **Build and run with Docker**
|
2. **Configure the proxy**
|
||||||
|
```bash
|
||||||
|
cp config.yaml.example config.yaml
|
||||||
|
# Edit config.yaml as needed
|
||||||
|
```
|
||||||
|
|
||||||
|
3. **Build and run with Docker**
|
||||||
```bash
|
```bash
|
||||||
# Build the image
|
# Build the image
|
||||||
docker build -t claude-code-proxy .
|
docker build -t claude-code-proxy .
|
||||||
|
|
@ -73,12 +79,18 @@ Claude Code Proxy serves three main purposes:
|
||||||
docker run -p 3001:3001 -p 5173:5173 claude-code-proxy
|
docker run -p 3001:3001 -p 5173:5173 claude-code-proxy
|
||||||
```
|
```
|
||||||
|
|
||||||
3. **Run with persistent data and custom configuration**
|
4. **Run with persistent data and custom configuration**
|
||||||
```bash
|
```bash
|
||||||
# Create a data directory for persistent SQLite database
|
# Create a data directory for persistent SQLite database
|
||||||
mkdir -p ./data
|
mkdir -p ./data
|
||||||
|
|
||||||
# Run with volume mount and custom environment variables
|
# Option 1: Run with config file (recommended)
|
||||||
|
docker run -p 3001:3001 -p 5173:5173 \
|
||||||
|
-v ./data:/app/data \
|
||||||
|
-v ./config.yaml:/app/config.yaml:ro \
|
||||||
|
claude-code-proxy
|
||||||
|
|
||||||
|
# Option 2: Run with environment variables
|
||||||
docker run -p 3001:3001 -p 5173:5173 \
|
docker run -p 3001:3001 -p 5173:5173 \
|
||||||
-v ./data:/app/data \
|
-v ./data:/app/data \
|
||||||
-e ANTHROPIC_FORWARD_URL=https://api.anthropic.com \
|
-e ANTHROPIC_FORWARD_URL=https://api.anthropic.com \
|
||||||
|
|
@ -87,7 +99,7 @@ Claude Code Proxy serves three main purposes:
|
||||||
claude-code-proxy
|
claude-code-proxy
|
||||||
```
|
```
|
||||||
|
|
||||||
4. **Docker Compose (alternative)**
|
5. **Docker Compose (alternative)**
|
||||||
```yaml
|
```yaml
|
||||||
# docker-compose.yml
|
# docker-compose.yml
|
||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
@ -99,6 +111,7 @@ Claude Code Proxy serves three main purposes:
|
||||||
- "5173:5173"
|
- "5173:5173"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/app/data
|
- ./data:/app/data
|
||||||
|
- ./config.yaml:/app/config.yaml:ro # Mount config file
|
||||||
environment:
|
environment:
|
||||||
- ANTHROPIC_FORWARD_URL=https://api.anthropic.com
|
- ANTHROPIC_FORWARD_URL=https://api.anthropic.com
|
||||||
- PORT=3001
|
- PORT=3001
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue