-
Notifications
You must be signed in to change notification settings - Fork 96
/
docker-compose-localai.yml
36 lines (34 loc) · 1.05 KB
/
docker-compose-localai.yml
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
# This file comes from https://localai.io/basics/container/
# Visit that URL for more infos
services:
api:
image: localai/localai:latest-aio-cpu
# For a specific version:
# image: localai/localai:v2.21.1-aio-cpu
# For Nvidia GPUs decomment one of the following (cuda11 or cuda12):
# image: localai/localai:v2.21.1-aio-gpu-nvidia-cuda-11
# image: localai/localai:v2.21.1-aio-gpu-nvidia-cuda-12
# image: localai/localai:latest-aio-gpu-nvidia-cuda-11
# image: localai/localai:latest-aio-gpu-nvidia-cuda-12
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/readyz"]
interval: 1m
timeout: 20m
retries: 5
ports:
- 8080:8080
environment:
- DEBUG=true
# ...
volumes:
- localai-models:/build/models:cached
# decomment the following piece if running with Nvidia GPUs
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
volumes:
localai-models: { }