Compare commits
4 Commits
test-ai-re
...
test-ai-re
| Author | SHA1 | Date | |
|---|---|---|---|
| ff469f84f1 | |||
| 16023164ac | |||
| 59c50c4cde | |||
| a152406475 |
@@ -12,7 +12,7 @@ A webhook-based service that automatically generates AI code reviews for Gitea P
|
|||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
### Docker Compose
|
### Docker Compose
|
||||||
Run the container using the provided `compose.yaml`.
|
Run the container using the provided `compose.yaml`. This will start the service in daemon mode.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
@@ -25,7 +25,7 @@ Create a `.env` file with the following variables:
|
|||||||
| Variable | Required | Description | Default |
|
| Variable | Required | Description | Default |
|
||||||
| :--- | :--- | :--- | :--- |
|
| :--- | :--- | :--- | :--- |
|
||||||
| `GITEA_TOKEN` | **Yes** | A Gitea Access Token. Required permissions: `repository` (Read), `issue` (Read and Write). | |
|
| `GITEA_TOKEN` | **Yes** | A Gitea Access Token. Required permissions: `repository` (Read), `issue` (Read and Write). | |
|
||||||
| `GITEA_API_URL` | No | Full URL to your Gitea API (e.g., `http://gitea:3000/api/v1`). | |
|
| `GITEA_API_URL` | **Yes** | Full URL to your Gitea API (e.g., `https://git.example.com/api/v1`). | |
|
||||||
| `PORT` | No | Host port to expose the webhook server on. | `3000` |
|
| `PORT` | No | Host port to expose the webhook server on. | `3000` |
|
||||||
| `OPENAI_API_KEY` | **Yes** | API Key for your LLM provider. Use `dummy` for local models if no auth needed. | |
|
| `OPENAI_API_KEY` | **Yes** | API Key for your LLM provider. Use `dummy` for local models if no auth needed. | |
|
||||||
| `OPENAI_BASE_URL` | No | Base URL for the LLM API. Set this for Ollama/vLLM (e.g. `http://host.docker.internal:11434/v1/`). | `https://api.openai.com/v1/` |
|
| `OPENAI_BASE_URL` | No | Base URL for the LLM API. Set this for Ollama/vLLM (e.g. `http://host.docker.internal:11434/v1/`). | `https://api.openai.com/v1/` |
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ services:
|
|||||||
# VCS Config
|
# VCS Config
|
||||||
- VCS__PROVIDER=GITEA
|
- VCS__PROVIDER=GITEA
|
||||||
- VCS__HTTP_CLIENT__API_TOKEN=${GITEA_TOKEN}
|
- VCS__HTTP_CLIENT__API_TOKEN=${GITEA_TOKEN}
|
||||||
- VCS__HTTP_CLIENT__API_URL=${GITEA_API_URL:-http://gitea-server:3000/api/v1}
|
- VCS__HTTP_CLIENT__API_URL=${GITEA_API_URL}
|
||||||
volumes:
|
volumes:
|
||||||
- xai-cache:/root/.cache
|
- xai-cache:/root/.cache
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user