Refactor deployment scripts and configuration files

This commit is contained in:
2024-05-30 20:21:45 +08:00
parent 895f1d0aef
commit 91200fe37e
2 changed files with 13 additions and 16 deletions
+13 -11
View File
@@ -20,17 +20,19 @@ This simple project uses Traefik as a reverse proxy to a Streamlit application a
- Build for ARM64 platform
## Production Deployment
1. `git clone
1. `git submodule update --init --recursive`
1. In `compose/traefik/traefik.yml`, change `example@test.com` to your email.
2. In `compose/traefik/traefik.yml`, change `example.com` to your domain.
3. `sudo apt-get install build-essential` (if not already installed) to use makefile.
4. `mdkir ~/st-sync` syncthing folder.
5. `cd ~/site` public site folder.
5. `mkdir ./compose/config` to store config.
8. `cp .env.example ./compose/.env`
9. `cp usersfile.example ./compose/usersfile`
10. `make serve`
1. `git clone https://github.com/furyhawk/cloudy.git`
2. `cd cloudy`
3. `git submodule update --init --recursive`
4. In `compose/traefik/traefik.yml`, change `example@test.com` to your email.
5. In `compose/traefik/traefik.yml`, change `example.com` to your domain.
6. `sudo apt-get install build-essential` (if not already installed) to use makefile.
7. `mkdir ~/st-sync` syncthing folder.
8. `mkdir ~/site` public site folder.
9. `mkdir ./compose/config` to store config.
10. `cp .env.example ./compose/.env && cp .env ~/config/.env`
11. `cp ./compose/config/conf.php ~/config/conf.php`
12. `cp usersfile.example ./compose/usersfile`
13. `make serve`
### Notes:
```yaml
-5
View File
@@ -10,7 +10,6 @@ volumes:
services:
librechat_api:
# container_name: librechat_api
ports:
- "${PORT}:${PORT}"
depends_on:
@@ -46,7 +45,6 @@ services:
- "traefik.http.routers.librechat.service=librechat_app"
- "traefik.http.services.librechat_app.loadbalancer.server.port=${PORT}"
mongodb:
# container_name: chat-mongodb
image: mongo
restart: always
user: "${UID}:${GID}"
@@ -54,7 +52,6 @@ services:
- data-node:/data/db
command: mongod --noauth
meilisearch:
# container_name: chat-meilisearch
image: getmeili/meilisearch:v1.7.3
restart: always
user: "${UID}:${GID}"
@@ -64,7 +61,6 @@ services:
volumes:
- meili_data:/meili_data
vectordb:
# container_name: vectordb
image: ankane/pgvector:latest
environment:
POSTGRES_DB: mydatabase
@@ -74,7 +70,6 @@ services:
volumes:
- pgdata2:/var/lib/postgresql/data
rag_api:
# container_name: rag_api
image: ghcr.io/danny-avila/librechat-rag-api-dev:latest
environment:
POSTGRES_DB: mydatabase