forked from Mirrowel/LLM-API-Key-Proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (60 loc) · 2.03 KB
/
docker-compose.yml
File metadata and controls
61 lines (60 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
services:
llm-proxy:
image: ghcr.io/mirrowel/llm-api-key-proxy:latest
container_name: llm-api-proxy
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
ports:
- "${PORT:-8000}:8000"
volumes:
# Mount .env files for configuration
- ./.env:/app/.env:ro
# Mount oauth_creds directory for OAuth credentials persistence
- ./oauth_creds:/app/oauth_creds
# Mount logs directory for persistent logging
- ./logs:/app/logs
# Mount usage directory for usage statistics persistence
- ./usage:/app/usage
# Optionally mount additional .env files (e.g., combined credential files)
# - ./antigravity_all_combined.env:/app/antigravity_all_combined.env:ro
environment:
# Skip OAuth interactive initialization in container (non-interactive)
- SKIP_OAUTH_INIT_CHECK=true
# Ensure Python output is not buffered
- PYTHONUNBUFFERED=1
# Cursor sidecar integration (uncomment to enable)
# - CURSOR_API_BASE=http://cursor-sidecar:18741/v1
# - CURSOR_API_KEY=not-needed
# Uncomment to enable cursor sidecar dependency
# depends_on:
# cursor-sidecar:
# condition: service_healthy
# Cursor Sidecar - OpenAI-compatible proxy for Cursor AI
# Uncomment this service to enable Cursor model access
# cursor-sidecar:
# build:
# context: ./cursor-sidecar
# dockerfile: Dockerfile
# container_name: cursor-sidecar
# restart: unless-stopped
# logging:
# driver: "json-file"
# options:
# max-size: "10m"
# max-file: "3"
# environment:
# # Cursor access token - obtain from ~/.config/cursor/auth.json
# - CURSOR_ACCESS_TOKEN=${CURSOR_ACCESS_TOKEN}
# - PORT=18741
# expose:
# - "18741"
# healthcheck:
# test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:18741/health"]
# interval: 30s
# timeout: 10s
# retries: 3
# start_period: 10s