fix: docker issues with volume mapping (#1330)

* fix: docker issues with volume mapping

* Update docker-compose.yml

---------

Co-authored-by: stunt_pilot <twitchstuntpilot@gmail.com>
This commit is contained in:
Danny Avila 2023-12-11 22:39:24 -05:00 committed by GitHub
parent 9db3d792cc
commit e69644d7b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -97,7 +97,7 @@ async function validateDockerRunning() {
console.purple('Building new LibreChat image...');
const buildCommand = `${sudo}docker-compose ${
singleCompose ? '-f ./docs/dev/single-compose.yml ' : ''
}build`;
}build --no-cache`;
console.orange(buildCommand);
execSync(buildCommand, { stdio: 'inherit' });
} else {

View file

@ -38,6 +38,8 @@ services:
- MEILI_HOST=http://meilisearch:7700
- MEILI_HTTP_ADDR=meilisearch:7700
volumes:
- /app/client/node_modules # node_modules mapping necessary for module persistence
- /app/api/node_modules
- ./api:/app/api
- ./.env:/app/.env
- ./.env.development:/app/.env.development