Replies: 3 comments 13 replies
-
I believe @fuegovic has a portainer setup, I forget where he has it hosted so pinging for help |
Beta Was this translation helpful? Give feedback.
-
Here's my portainer compose file, just map the volumes to somewhere that make sense for your setup: version: "3.9"
services:
# LibreChat
api:
container_name: LibreChat
image: ghcr.io/danny-avila/librechat-dev:latest
ports:
- "${PORT}:${PORT}"
restart: always
env_file:
- stack.env
volumes:
- C:/data/LibreChat/images:/app/client/public/images
- C:/data/LibreChat/uploads/temp:/app/uploads/temp
- C:/data/LibreChat/api/logs:/app/api/logs/
- C:/data/LibreChat/app/data:/app/app/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3080/health"]
interval: 30s
timeout: 5s
retries: 3
# Meilisearch
meilisearch:
container_name: Meilisearch
image: getmeili/meilisearch:latest
ports:
- 7700:7700
restart: always
env_file:
- stack.env
volumes:
- C:/data/LibreChat/meili_data_v1.8:/meili_data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7700/health"]
interval: 30s
timeout: 5s
retries: 3
#Vectordb
vectordb:
container_name: VectorDB
image: ankane/pgvector:latest
restart: always
environment:
POSTGRES_DB: librechat
POSTGRES_USER: username
POSTGRES_PASSWORD: password
volumes:
- C:/data/LibreChat/pgdata2:/var/lib/postgresql/data
ports:
- "5432:5432"
#RAG API
rag_api:
container_name: RAG-API
image: ghcr.io/danny-avila/librechat-rag-api-dev:latest
restart: always
environment:
- DB_HOST=vectordb
- DB_PORT=5432
- POSTGRES_DB=librechat
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
ports:
- "8008:8000"
depends_on:
- vectordb
env_file:
- stack.env
volumes:
pgdata2: And APP_TITLE=LibreChat
HOST=0.0.0.0
PORT=3080
MONGO_URI=
DOMAIN_CLIENT=https://librechat.example.com
DOMAIN_SERVER=https://librechat.example.com
NO_INDEX=true
------=
DEBUG_LOGGING=true
DEBUG_CONSOLE=false
PROXY=
------=
ENDPOINTS=openAI,chatGPTBrowser,gptPlugins,assistants,anthropic,bingAI,google,customgpt
---=
CONFIG_PATH="https://raw.githubusercontent.com/fuegovic/lc-config-yaml/main/librechat.yaml"
---=
ANYSCALE_API_KEY=user_provided
APIPIE_API_KEY=user_provided
COHERE_API_KEY=user_provided
FIREWORKS_API_KEY=user_provided
GROQ_API_KEY=user_provided
HUGGINGFACE_TOKEN=user_provided
MISTRAL_API_KEY=user_provided
OPENROUTER_KEY=user_provided
PERPLEXITY_API_KEY=user_provided
SHUTTLEAI_API_KEY=user_provided
TOGETHERAI_API_KEY=user_provided
---=
ANTHROPIC_API_KEY=user_provided
---=
BINGAI_TOKEN=user_provided
---=
GOOGLE_KEY=user_provided
---=
OPENAI_API_KEY=user_provided
ASSISTANTS_API_KEY=user_provided
DEBUG_OPENAI=false
DEBUG_PLUGINS=true
------=
CREDS_KEY=
CREDS_IV=
---=
SEARCH=true
MEILI_NO_ANALYTICS=true
MEILI_HOST=http://host.docker.internal:7700
MEILI_MASTER_KEY=DrhYf7zENyR6AlUCKmnz0eYASOQdl6zxH7s7MKFSfFCt
------=
OPENAI_MODERATION=false
OPENAI_MODERATION_API_KEY=
BAN_VIOLATIONS=true
BAN_DURATION=1000 * 60 * 60 * 2
BAN_INTERVAL=20
LOGIN_VIOLATION_SCORE=1
REGISTRATION_VIOLATION_SCORE=1
CONCURRENT_VIOLATION_SCORE=1
MESSAGE_VIOLATION_SCORE=1
NON_BROWSER_VIOLATION_SCORE=20
LOGIN_MAX=7
LOGIN_WINDOW=5
REGISTER_MAX=5
REGISTER_WINDOW=60
LIMIT_CONCURRENT_MESSAGES=true
CONCURRENT_MESSAGE_MAX=2
LIMIT_MESSAGE_IP=true
MESSAGE_IP_MAX=40
MESSAGE_IP_WINDOW=1
LIMIT_MESSAGE_USER=false
MESSAGE_USER_MAX=40
MESSAGE_USER_WINDOW=1
---=
CHECK_BALANCE=false
------=
ALLOW_EMAIL_LOGIN=true
ALLOW_REGISTRATION=true
ALLOW_SOCIAL_LOGIN=true
ALLOW_SOCIAL_REGISTRATION=true
---=
SESSION_EXPIRY=1000 * 60 * 15
REFRESH_TOKEN_EXPIRY=(1000 * 60 * 60 * 24) * 7
---=
JWT_SECRET=
JWT_REFRESH_SECRET=
------=
RAG_API_URL=http://host.docker.internal:8008
DB_HOST=vectordb
DB_PORT=5432
EMBEDDINGS_PROVIDER=huggingface
HF_TOKEN= Note:
|
Beta Was this translation helpful? Give feedback.
-
I've managed to get it working a different way using Dockge, i've just had to make some adjusts in the original files from original repository. Assuming you are already running Dockge, (it's possible to run alongside Portainer) 1 - login your server with ssh and clone the repository
I think there was where no necessary changes in the original .env file.
|
Beta Was this translation helpful? Give feedback.
-
What is your question?
Does anyone maybe has a portainer compatible docker-compose.yml and .env file for LibreChat.
I have been trying a long time but there are no clear errors which tell me what .env's are missing in my setup.
It is not really clear what environment variables are required for basic setup.
It would be really nice if someone could share please :-)
More Details
That console logs I get on the librechat service:
What is the main subject of your question?
Installation
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions