2023-05-01 21:18:14 +00:00
|
|
|
version: '3.6'
|
|
|
|
|
|
|
|
services:
|
|
|
|
api:
|
|
|
|
image: quay.io/go-skynet/local-ai:latest
|
|
|
|
build:
|
|
|
|
context: ../../
|
2023-05-30 13:58:10 +00:00
|
|
|
dockerfile: Dockerfile
|
2023-05-01 21:18:14 +00:00
|
|
|
ports:
|
|
|
|
- 8080:8080
|
|
|
|
environment:
|
|
|
|
- DEBUG=true
|
|
|
|
- MODELS_PATH=/models
|
|
|
|
volumes:
|
|
|
|
- ./models:/models:cached
|
|
|
|
command: ["/usr/bin/local-ai" ]
|
|
|
|
|
2023-05-04 06:41:13 +00:00
|
|
|
js:
|
2023-05-01 21:18:14 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: JS.Dockerfile
|
2023-05-04 06:41:13 +00:00
|
|
|
profiles:
|
|
|
|
- js
|
|
|
|
- ts
|
|
|
|
depends_on:
|
|
|
|
- "api"
|
2023-05-01 21:18:14 +00:00
|
|
|
environment:
|
|
|
|
- 'OPENAI_API_KEY=sk-XXXXXXXXXXXXXXXXXXXX'
|
2023-05-04 06:41:13 +00:00
|
|
|
- 'OPENAI_API_BASE=http://api:8080/v1'
|
|
|
|
- 'MODEL_NAME=gpt-3.5-turbo' #gpt-3.5-turbo' # ggml-gpt4all-j' # ggml-koala-13B-4bit-128g'
|
|
|
|
|
|
|
|
py:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: PY.Dockerfile
|
|
|
|
profiles:
|
|
|
|
- py
|
|
|
|
depends_on:
|
|
|
|
- "api"
|
|
|
|
environment:
|
|
|
|
- 'OPENAI_API_KEY=sk-XXXXXXXXXXXXXXXXXXXX'
|
|
|
|
- 'OPENAI_API_BASE=http://api:8080/v1'
|
2023-05-01 21:18:14 +00:00
|
|
|
- 'MODEL_NAME=gpt-3.5-turbo' #gpt-3.5-turbo' # ggml-gpt4all-j' # ggml-koala-13B-4bit-128g'
|