2023-07-21 15:13:29 -04:00
|
|
|
version: "3.8"
|
2023-06-28 14:28:52 -04: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"
|
2023-11-11 23:27:32 -05:00
|
|
|
env_file:
|
|
|
|
- .env
|
2023-06-28 14:28:52 -04:00
|
|
|
environment:
|
|
|
|
- APP_ENVIRONMENT=dev
|
|
|
|
- WEB_CONCURRENCY=2
|
|
|
|
- LOGLEVEL=debug
|
|
|
|
- PORT=4891
|
2023-11-11 23:27:32 -05:00
|
|
|
- model=${MODEL_BIN} # using variable from .env file
|
2023-07-21 15:13:29 -04:00
|
|
|
- inference_mode=cpu
|
2023-06-28 14:28:52 -04:00
|
|
|
volumes:
|
|
|
|
- './gpt4all_api/app:/app'
|
2023-11-11 23:27:32 -05:00
|
|
|
- './gpt4all_api/models:/models' # models are mounted in the container
|
2023-06-28 14:28:52 -04:00
|
|
|
command: ["/start-reload.sh"]
|