-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (28 loc) · 1.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
28 lines (28 loc) · 1.05 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
services:
llms:
image: ghcr.io/servicestack/llms:latest
container_name: llms-py
ports:
# Only reachable from this machine. Use "8000:8000" to expose it on your LAN.
- "127.0.0.1:8000:8000"
env_file:
# All API keys live here, one VAR=value per line, no quotes.
# Create it with `cp .env.example .env`, or run:
# curl -fsSL https://llmspy.org/install.sh | bash
# which generates ~/.llms/.env for you.
- .env
volumes:
# User-modifiable config kept outside the container.
# llms.json and providers.json are auto-created on first run.
- ~/.llms:/home/llms/.llms
extra_hosts:
# Lets the container reach services on the host (ollama, LM Studio, ...)
# via http://host.docker.internal:11434 etc.
- "host.docker.internal:host-gateway"
restart: unless-stopped
healthcheck:
test: [ "CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000').read()" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s