-
Notifications
You must be signed in to change notification settings - Fork 149
/
docker-compose.yaml
42 lines (42 loc) · 1.36 KB
/
docker-compose.yaml
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
services:
&name optillm:
build:
context: https://github.com/codelion/optillm.git#main
# context: .
dockerfile: Dockerfile
tags:
- optillm:latest
args:
- PORT=${OPTILLM_PORT:-8000}
image: optillm:latest
container_name: *name
hostname: *name
ports:
- "${OPTILLM_PORT:-8000}:${OPTILLM_PORT:-8000}"
env_file:
- .env
environment:
OPENAI_API_KEY: ${OPENAI_API_KEY:-""}
OPTILLM_PORT: ${OPTILLM_PORT:-8000}
# OPTILLM_BASE_URL: ${OPENAI_BASE_URL:-"https://openrouter.ai/api/v1"} # can be set to any OpenAI API compatible endpoint
# OPTILLM_API_KEY: ${OPTILLM_API_KEY:-} # optionally sets an API key for Optillm clients
# Uncomment and set values for other arguments (prefixed with OPTILLM_) as needed, e.g.:
# OPTILLM_APPROACH: auto
# OPTILLM_MODEL: gpt-4o-mini
# OPTILLM_SIMULATIONS: 2
# OPTILLM_EXPLORATION: 0.2
# OPTILLM_DEPTH: 1
# OPTILLM_BEST_OF_N: 3
# OPTILLM_RSTAR_MAX_DEPTH: 3
# OPTILLM_RSTAR_NUM_ROLLOUTS: 5
# OPTILLM_RSTAR_C: 1.4
# OPTILLM_N: 1
# OPTILLM_RETURN_FULL_RESPONSE: false
restart: on-failure
stop_grace_period: 2s
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:${OPTILLM_PORT:-8000}/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 3s