🐳 docs: update to compose v2 (#1767)

This commit is contained in:
Fuegovic 2024-02-12 10:26:05 -05:00 committed by GitHub
parent a91042b6b9
commit 5ccdec730b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 45 additions and 45 deletions

View file

@ -44,7 +44,7 @@ Safely access and manage your MongoDB database using Mongo Express
How to set up the user/auth system and Google login.
### Running LibreChat
Once you have completed all the setup, you can start the LibreChat application by running the command `docker-compose up` in your terminal. After running this command, you can access the LibreChat application at `http://localhost:3080`.
Once you have completed all the setup, you can start the LibreChat application by running the command `docker compose up` in your terminal. After running this command, you can access the LibreChat application at `http://localhost:3080`.
**Note:** MongoDB does not support older ARM CPUs like those found in Raspberry Pis. However, you can make it work by setting MongoDBs version to mongo:4.4.18 in docker-compose.yml, the most recent version compatible with
@ -55,8 +55,8 @@ The following commands will fetch the latest code of LibreChat and build a new d
```bash
git pull
docker-compose down
docker-compose up --build
docker compose down
docker compose up --build
```
If you're having issues running this command, you can try running what the script does manually:
@ -65,7 +65,7 @@ Prefix commands with `sudo` according to your environment permissions.
```bash
# Stop the container (if running)
docker-compose down
docker compose down
# Switch to the repo's main branch
git checkout main
# Pull the latest changes to the main branch from Github
@ -77,10 +77,10 @@ docker rmi librechat:latest
# computer, also those not created by LibreChat!
docker image prune -f
# Building a new LibreChat image without cache
docker-compose build --no-cache
docker compose build --no-cache
# Start LibreChat
docker-compose up
docker compose up
```
## Advanced Settings
@ -128,7 +128,7 @@ services:
image: ghcr.io/danny-avila/librechat-dev:latest
```
- Then use `docker-compose build` as you would normally
- Then use `docker compose build` as you would normally
- **Note:** There are different Dockerhub images. the `librechat:latest` image is only updated with new release tags, so it may not have the latest changes to the main branch. To get the latest changes you can use `librechat-dev:latest` instead

View file

@ -31,8 +31,8 @@ In this video, you will learn how to install and run LibreChat, using Docker on
- Install Docker: `sudo apt install docker.io && apt install docker-compose -y`
- Enter the folder: `cd LibreChat`
- Create the .env file: `cp .env.example .env`
- Build the Docker image: `docker-compose build`
- Start LibreChat: `docker-compose up -d`
- Build the Docker image: `docker compose build`
- Start LibreChat: `docker compose up -d`
Note: If you run the command on the same computer and want to access it, navigate to `localhost:3080`. You should see a login page where you can create or sign in to your account. Then you can choose an AI model and start chatting.

View file

@ -34,7 +34,7 @@ In this video we're going to install LibreChat on Windows 11 using Docker and Gi
- `git clone https://github.com/danny-avila/LibreChat`
- `cd LibreChat`
- `copy .env.example .env`
- `docker-compose up`
- `docker compose up`
- Visit http://localhost:3080/ to access LibreChat. Create an account and start chatting.
- [Manage Your MongoDB Database (optional)](../../features/manage_your_database.md)