Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

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

Danny Avilad06e5d2e0294
diff --git a/config/update.js b/config/update.js
index fd947eda39..826624a011 100644
--- a/config/update.js
+++ b/config/update.js
@@ -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`;
}