mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 09:20:15 +01:00
🧹 chore: Update Docker Docs & Make cache field Optional for Custom Config (#2211)
* docs: updating docker * fix(customConfig): make `cache` field optional as intended (though not recommended for local setups)
This commit is contained in:
parent
f55bd3d0e9
commit
5c3c28009f
2 changed files with 24 additions and 8 deletions
|
|
@ -54,30 +54,46 @@ That's it! If you need more detailed information on configuring your compose fil
|
||||||
The following commands will fetch the latest code of LibreChat and build a new docker image.
|
The following commands will fetch the latest code of LibreChat and build a new docker image.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git pull
|
# Stop the running container(s)
|
||||||
docker compose down
|
docker compose down
|
||||||
docker compose up --build
|
|
||||||
|
# Pull latest project changes
|
||||||
|
git pull
|
||||||
|
|
||||||
|
# Pull the latest LibreChat image (default setup)
|
||||||
|
docker compose pull
|
||||||
|
|
||||||
|
# Start LibreChat
|
||||||
|
docker compose up
|
||||||
```
|
```
|
||||||
|
|
||||||
If you're having issues running this command, you can try running what the script does manually:
|
If you're having issues running the above commands, you can try a comprehensive approach:
|
||||||
|
|
||||||
Prefix commands with `sudo` according to your environment permissions.
|
Prefix commands with `sudo` according to your environment permissions.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Stop the container (if running)
|
# Stop the container (if running)
|
||||||
docker compose down
|
docker compose down
|
||||||
|
|
||||||
# Switch to the repo's main branch
|
# Switch to the repo's main branch
|
||||||
git checkout main
|
git checkout main
|
||||||
|
|
||||||
# Pull the latest changes to the main branch from Github
|
# Pull the latest changes to the main branch from Github
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
# Prune all LibreChat Docker images
|
# Prune all LibreChat Docker images
|
||||||
docker rmi librechat:latest
|
docker rmi librechat:latest
|
||||||
# Remove all unused dangling Docker images.
|
|
||||||
|
# Optional: Remove all unused dangling Docker images.
|
||||||
# Be careful, as this will delete all dangling docker images on your
|
# Be careful, as this will delete all dangling docker images on your
|
||||||
# computer, also those not created by LibreChat!
|
# computer, also those not created by LibreChat!
|
||||||
docker image prune -f
|
docker image prune -f
|
||||||
# Building a new LibreChat image without cache
|
|
||||||
docker compose build --no-cache
|
# If building the LibreChat image Locally, build without cache (legacy setup)
|
||||||
|
# docker compose build --no-cache
|
||||||
|
|
||||||
|
# Pull the latest image (default setup)
|
||||||
|
docker compose pull
|
||||||
|
|
||||||
# Start LibreChat
|
# Start LibreChat
|
||||||
docker compose up
|
docker compose up
|
||||||
|
|
|
||||||
|
|
@ -185,7 +185,7 @@ export const rateLimitSchema = z.object({
|
||||||
|
|
||||||
export const configSchema = z.object({
|
export const configSchema = z.object({
|
||||||
version: z.string(),
|
version: z.string(),
|
||||||
cache: z.boolean(),
|
cache: z.boolean().optional().default(true),
|
||||||
interface: z
|
interface: z
|
||||||
.object({
|
.object({
|
||||||
privacyPolicy: z
|
privacyPolicy: z
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue