mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-04 22:10:12 +01:00
bind docker to docker/.env so dumps persist between restarts
This commit is contained in:
parent
2afe3faed8
commit
7d3d0e03c6
@ -11,4 +11,5 @@ collector/outputs/**
|
||||
**/__pycache__/
|
||||
**/.env
|
||||
**/.env.*
|
||||
!docker/.env.example
|
||||
!frontend/.env.production
|
@ -5,9 +5,9 @@ CACHE_VECTORS="true"
|
||||
###########################################
|
||||
######## LLM API SElECTION ################
|
||||
###########################################
|
||||
LLM_PROVIDER='openai'
|
||||
# LLM_PROVIDER='openai'
|
||||
# OPEN_AI_KEY=
|
||||
OPEN_MODEL_PREF='gpt-3.5-turbo'
|
||||
# OPEN_MODEL_PREF='gpt-3.5-turbo'
|
||||
|
||||
# LLM_PROVIDER='azure'
|
||||
# AZURE_OPENAI_ENDPOINT=
|
||||
@ -36,13 +36,13 @@ OPEN_MODEL_PREF='gpt-3.5-turbo'
|
||||
# CHROMA_API_KEY="sk-123abc"
|
||||
|
||||
# Enable all below if you are using vector database: Pinecone.
|
||||
VECTOR_DB="lancedb"
|
||||
PINECONE_ENVIRONMENT=
|
||||
PINECONE_API_KEY=
|
||||
PINECONE_INDEX=
|
||||
# VECTOR_DB="pinecone"
|
||||
# PINECONE_ENVIRONMENT=
|
||||
# PINECONE_API_KEY=
|
||||
# PINECONE_INDEX=
|
||||
|
||||
# Enable all below if you are using vector database: LanceDB.
|
||||
# VECTOR_DB="lancedb"
|
||||
VECTOR_DB="lancedb"
|
||||
|
||||
# Enable all below if you are using vector database: Weaviate.
|
||||
# VECTOR_DB="weaviate"
|
||||
@ -58,6 +58,5 @@ PINECONE_INDEX=
|
||||
# AUTH_TOKEN="hunter2" # This is the password to your application if remote hosting.
|
||||
# NO_DEBUG="true"
|
||||
STORAGE_DIR="/app/server/storage"
|
||||
GOOGLE_APIS_KEY=
|
||||
UID='1000'
|
||||
GID='1000'
|
||||
|
@ -37,6 +37,7 @@ RUN groupadd -g $ARG_GID anythingllm && \
|
||||
# Copy docker helper scripts
|
||||
COPY ./docker/docker-entrypoint.sh /usr/local/bin/
|
||||
COPY ./docker/docker-healthcheck.sh /usr/local/bin/
|
||||
COPY --chown=anythingllm:anythingllm ./docker/.env.example /app/server/.env
|
||||
|
||||
# Ensure the scripts are executable
|
||||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh && \
|
||||
|
@ -9,7 +9,7 @@ Use the Dockerized version of AnythingLLM for a much faster and complete startup
|
||||
- `git clone` this repo and `cd anything-llm` to get to the root directory.
|
||||
- `touch server/storage/anythingllm.db` to create empty SQLite DB file.
|
||||
- `cd docker/`
|
||||
- `cp .env.example .env`
|
||||
- `cp .env.example .env` **you must do this before building**
|
||||
- `docker-compose up -d --build` to build the image - this will take a few moments.
|
||||
|
||||
Your docker host will show the image as online once the build process is completed. This will build the app to `http://localhost:3001`.
|
||||
|
@ -18,6 +18,7 @@ services:
|
||||
ARG_UID: ${UID}
|
||||
ARG_GID: ${GID}
|
||||
volumes:
|
||||
- "./.env:/app/server/.env"
|
||||
- "../server/storage:/app/server/storage"
|
||||
- "../collector/hotdir/:/app/collector/hotdir"
|
||||
- "../collector/outputs/:/app/collector/outputs"
|
||||
|
Loading…
Reference in New Issue
Block a user