🛠️ chore: Refactor Update Script to Utilize Docker Compose v2 (#1752)

This commit is contained in:
Danny Avila 2024-02-07 22:06:10 -05:00 committed by GitHub
parent 7f2264fd5c
commit d06e5d2e02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,7 +79,7 @@ async function validateDockerRunning() {
if (docker) {
console.purple('Removing previously made Docker container...');
const downCommand = `${sudo}docker-compose ${
const downCommand = `${sudo}docker compose ${
singleCompose ? '-f ./docs/dev/single-compose.yml ' : ''
}down`;
console.orange(downCommand);
@ -95,7 +95,7 @@ async function validateDockerRunning() {
console.purple('Removing all unused dangling Docker images...');
execSync(`${sudo}docker image prune -f`, { stdio: 'inherit' });
console.purple('Building new LibreChat image...');
const buildCommand = `${sudo}docker-compose ${
const buildCommand = `${sudo}docker compose ${
singleCompose ? '-f ./docs/dev/single-compose.yml ' : ''
}build --no-cache`;
console.orange(buildCommand);
@ -119,7 +119,7 @@ async function validateDockerRunning() {
let startCommand = 'npm run backend';
if (docker) {
startCommand = `${sudo}docker-compose ${
startCommand = `${sudo}docker compose ${
singleCompose ? '-f ./docs/dev/single-compose.yml ' : ''
}up`;
}