mirror of
https://github.com/jeffusion/gitea-ai-assistant.git
synced 2026-03-27 10:05:50 +00:00
- Replace default Vite favicon and title with project-specific branding - Add axios response interceptor to handle 401 by clearing token and redirecting to login - Move health check endpoint from '/' to '/api/health' so SPA index.html is served on root - Integrate next-themes ThemeProvider with system preference detection and manual toggle - Update docker-compose and k8s health check paths accordingly - Replace hardcoded dark-only colors with semantic CSS variable tokens for theme compatibility
66 lines
1.3 KiB
YAML
66 lines
1.3 KiB
YAML
services:
|
|
gitea-assistant:
|
|
image: ghcr.io/${GITHUB_REPOSITORY_OWNER:-jeffusion}/gitea-ai-assistant:${VERSION:-latest}
|
|
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
|
|
container_name: gitea-assistant
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- assistant_data:/app/data
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
qdrant:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 5s
|
|
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 512M
|
|
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
qdrant:
|
|
image: qdrant/qdrant:latest
|
|
container_name: qdrant
|
|
ports:
|
|
- "6333:6333"
|
|
- "6334:6334"
|
|
volumes:
|
|
- qdrant_data:/qdrant/storage
|
|
restart: unless-stopped
|
|
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:6333/healthz"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 5s
|
|
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 1G
|
|
|
|
volumes:
|
|
qdrant_data:
|
|
driver: local
|
|
assistant_data:
|
|
driver: local
|