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