mirror of
https://github.com/mudler/LocalAI
synced 2026-04-21 13:27:21 +00:00
fix: Add named volumes for Windows Docker compatibility (#8661)
- Added named volumes (models, images) to docker-compose.yaml - Added named volumes (models, backends) to .devcontainer/docker-compose-devcontainer.yml - Changed bind mounts to named volumes for Windows compatibility Fixes #8455 Signed-off-by: localai-bot <localai-bot@users.noreply.github.com> Co-authored-by: localai-bot <localai-bot@users.noreply.github.com>
This commit is contained in:
parent
0483d47674
commit
65082b3a6f
2 changed files with 12 additions and 4 deletions
|
|
@ -10,7 +10,8 @@ services:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
volumes:
|
volumes:
|
||||||
- localai_workspace:/workspace
|
- localai_workspace:/workspace
|
||||||
- ../models:/host-models
|
- models:/host-models
|
||||||
|
- backends:/host-backends
|
||||||
- ./customization:/devcontainer-customization
|
- ./customization:/devcontainer-customization
|
||||||
command: /bin/sh -c "while sleep 1000; do :; done"
|
command: /bin/sh -c "while sleep 1000; do :; done"
|
||||||
cap_add:
|
cap_add:
|
||||||
|
|
@ -39,6 +40,9 @@ services:
|
||||||
- GF_SECURITY_ADMIN_PASSWORD=grafana
|
- GF_SECURITY_ADMIN_PASSWORD=grafana
|
||||||
volumes:
|
volumes:
|
||||||
- ./grafana:/etc/grafana/provisioning/datasources
|
- ./grafana:/etc/grafana/provisioning/datasources
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
prom_data:
|
prom_data:
|
||||||
localai_workspace:
|
localai_workspace:
|
||||||
|
models:
|
||||||
|
backends:
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,14 @@ services:
|
||||||
- MODELS_PATH=/models
|
- MODELS_PATH=/models
|
||||||
# - DEBUG=true
|
# - DEBUG=true
|
||||||
volumes:
|
volumes:
|
||||||
- ./models:/models:cached
|
- models:/models
|
||||||
- ./images/:/tmp/generated/images/
|
- images:/tmp/generated/images/
|
||||||
command:
|
command:
|
||||||
# Here we can specify a list of models to run (see quickstart https://localai.io/basics/getting_started/#running-models )
|
# Here we can specify a list of models to run (see quickstart https://localai.io/basics/getting_started/#running-models )
|
||||||
# or an URL pointing to a YAML configuration file, for example:
|
# or an URL pointing to a YAML configuration file, for example:
|
||||||
# - https://gist.githubusercontent.com/mudler/ad601a0488b497b69ec549150d9edd18/raw/a8a8869ef1bb7e3830bf5c0bae29a0cce991ff8d/phi-2.yaml
|
# - https://gist.githubusercontent.com/mudler/ad601a0488b497b69ec549150d9edd18/raw/a8a8869ef1bb7e3830bf5c0bae29a0cce991ff8d/phi-2.yaml
|
||||||
- phi-2
|
- phi-2
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
models:
|
||||||
|
images:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue