2023-07-21 19:13:29 +00:00
|
|
|
version: "3.8"
|
2023-06-28 18:28:52 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
gpt4all_api:
|
|
|
|
image: gpt4all_api
|
|
|
|
container_name: gpt4all_api
|
|
|
|
restart: always #restart on error (usually code compilation from save during bad state)
|
|
|
|
ports:
|
|
|
|
- "4891:4891"
|
|
|
|
environment:
|
|
|
|
- APP_ENVIRONMENT=dev
|
|
|
|
- WEB_CONCURRENCY=2
|
|
|
|
- LOGLEVEL=debug
|
|
|
|
- PORT=4891
|
2023-11-07 19:31:48 +00:00
|
|
|
- model=${MODEL_ID}
|
2023-07-21 19:13:29 +00:00
|
|
|
- inference_mode=cpu
|
2023-06-28 18:28:52 +00:00
|
|
|
volumes:
|
|
|
|
- './gpt4all_api/app:/app'
|
2023-11-07 19:31:48 +00:00
|
|
|
- './gpt4all_api/models:/models'
|
2023-06-28 18:28:52 +00:00
|
|
|
command: ["/start-reload.sh"]
|