Skip to content

Commit

Permalink
fix: docker issues with volume mapping (danny-avila#1330)
Browse files Browse the repository at this point in the history
* fix: docker issues with volume mapping

* Update docker-compose.yml

---------

Co-authored-by: stunt_pilot <twitchstuntpilot@gmail.com>
  • Loading branch information
2 people authored and shortpoet committed Dec 30, 2023
1 parent 88dad30 commit ea34329
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea34329

Please sign in to comment.