2023-04-12 23:13:14 +00:00
|
|
|
version: '3.6'
|
|
|
|
|
|
|
|
services:
|
2023-04-15 23:39:07 +00:00
|
|
|
|
|
|
|
# chatgpt:
|
|
|
|
# image: ghcr.io/mckaywrigley/chatbot-ui:main
|
|
|
|
# # platform: linux/amd64
|
|
|
|
# ports:
|
|
|
|
# - 3000:3000
|
|
|
|
# environment:
|
|
|
|
# - 'OPENAI_API_KEY=sk-000000000000000'
|
|
|
|
# - 'OPENAI_API_HOST=http://api:8080'
|
|
|
|
|
2023-04-12 23:13:14 +00:00
|
|
|
api:
|
|
|
|
image: quay.io/go-skynet/llama-cli:latest
|
2023-04-15 23:39:07 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
2023-04-19 15:10:29 +00:00
|
|
|
# args:
|
|
|
|
# BUILD_TYPE: generic # Uncomment to build CPU generic code that works on most HW
|
2023-04-12 23:13:14 +00:00
|
|
|
ports:
|
|
|
|
- 8080:8080
|
|
|
|
environment:
|
2023-04-15 23:39:07 +00:00
|
|
|
- MODELS_PATH=$MODELS_PATH
|
|
|
|
- CONTEXT_SIZE=$CONTEXT_SIZE
|
2023-04-12 23:13:14 +00:00
|
|
|
- THREADS=$THREADS
|
2023-04-15 23:39:07 +00:00
|
|
|
volumes:
|
|
|
|
- ./models:/models:cached
|
|
|
|
command: api
|
|
|
|
|