-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yml
54 lines (53 loc) · 1.27 KB
/
compose.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '3'
services:
localai:
image: localai/localai:v2.11.0-aio-cpu
container_name: ${APP_NAME}-localai
# For Nvidia GPUs decomment one of the following (cuda11 or cuda12):
# image: localai/localai:v2.11.0-aio-gpu-cuda-11
# image: localai/localai:v2.11.0-aio-gpu-cuda-12
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/readyz"]
interval: 1m
timeout: 20m
retries: 5
ports:
- 8080:8080
environment:
- DEBUG=true
# ...
volumes:
- ./models:/build/models:cached
# decomment the following piece if running with Nvidia GPUs
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
networks:
- ai-playground-network
app:
image: node:20-alpine
container_name: ${APP_NAME}-app
restart: always
ulimits:
nproc: 65535
nofile:
soft: 20000
hard: 40000
working_dir: /var/www/app
volumes:
- .:/var/www/app
ports:
- "4321:4321"
environment:
- NODE_ENV=${NODE_ENV}
user: "node"
command: npm start
networks:
- ai-playground-network
networks:
ai-playground-network:
driver: bridge