2023-12-22 08:36:42 -05:00
|
|
|
---
|
|
|
|
|
title: Dev Resources
|
|
|
|
|
weight: 6
|
|
|
|
|
---
|
2023-05-21 08:56:06 -04:00
|
|
|
|
2023-12-22 08:36:42 -05:00
|
|
|
# Dev Resources
|
2023-12-28 17:10:06 -05:00
|
|
|
Please consult: **[Contributing to LibreChat](../contributions/index.md)** for more information on the subject.
|
2023-12-22 08:36:42 -05:00
|
|
|
|
2023-12-28 17:10:06 -05:00
|
|
|
This directory: **[./docs/dev](https://github.com/danny-avila/LibreChat/tree/main/docs/dev)**, contains files used for developer work.
|
2023-12-22 08:36:42 -05:00
|
|
|
|
|
|
|
|
#### `Dockerfile-app`
|
|
|
|
|
- used to build the DockerHub image
|
|
|
|
|
|
|
|
|
|
#### `eslintrc-stripped.js`
|
2023-07-01 20:11:37 -04:00
|
|
|
- alternate linting rules, used in development
|
2023-12-22 08:36:42 -05:00
|
|
|
|
|
|
|
|
#### `meilisearch.yml`
|
2023-07-21 17:11:05 -07:00
|
|
|
- Dockerfile for building meilisearch image independently from project
|
2023-12-22 08:36:42 -05:00
|
|
|
|
|
|
|
|
#### `single-compose.yml`
|
2023-07-21 17:11:05 -07:00
|
|
|
- Dockerfile for building app image without meilisearch and mongodb services
|
|
|
|
|
- This is useful for deploying on Google, Azure, etc., as a single, leaner container.
|
|
|
|
|
- From root dir of the project, run `docker-compose -f ./docs/dev/single-compose.yml up --build`
|
|
|
|
|
- When you don't need to build, run `docker-compose -f ./docs/dev/single-compose.yml up`
|
|
|
|
|
- This requires you use a MongoDB Atlas connection string for the `MONGO_URI` env var
|
|
|
|
|
- A URI string to a mongodb service accessible to your container is also possible.
|
2023-07-26 12:57:26 -04:00
|
|
|
- Remote Meilisearch may also be possible in the same manner, but is not tested.
|
2023-12-22 08:36:42 -05:00
|
|
|
|
|
|
|
|
#### `deploy-compose.yml`
|
2023-07-26 12:57:26 -04:00
|
|
|
- Similar to above, but with basic configuration for deployment to a cloud provider where multi-container compose works
|
2023-12-28 17:10:06 -05:00
|
|
|
- Tested and working on a $6 droplet on DigitalOcean, just by visiting the `http://server-ip/9000`.
|
2023-07-26 12:57:26 -04:00
|
|
|
- Not a scalable solution, but ideal for quickly hosting on a remote linux server.
|
|
|
|
|
- You should adjust `server_name localhost;` to match your domain name, replacing localhost, as needed.
|
|
|
|
|
- From root dir of the project, run `docker-compose -f ./docs/dev/deploy-compose.yml up --build`
|
|
|
|
|
- When you don't need to build, run `docker-compose -f ./docs/dev/deploy-compose.yml up`
|
|
|
|
|
- Unlike the single-compose file, this containerizes both MongoDB and Meilisearch, as they are already setup for you.
|