buat docker

This commit is contained in:
2026-05-25 10:20:58 +08:00
parent fd3d3a4d2b
commit 05811e76ef
10 changed files with 338 additions and 0 deletions

56
.env.docker.example Normal file
View File

@@ -0,0 +1,56 @@
APP_NAME="Pangkalan Pengetahuan"
APP_ENV=production
APP_KEY=
APP_DEBUG=false
APP_URL=http://localhost
APP_PORT=8080
APP_LOCALE=ms
APP_FALLBACK_LOCALE=ms
LOG_CHANNEL=stack
LOG_LEVEL=debug
DB_CONNECTION=mysql
# Production MySQL:
# DB_HOST=172.17.200.16
# Local MySQL on the Docker host:
# Use host.docker.internal inside the container. Do not use localhost here
# unless MySQL is running in the same container.
DB_HOST=host.docker.internal
DB_PORT=3306
DB_DATABASE=knowledge_base
DB_USERNAME=root
DB_PASSWORD=
SESSION_DRIVER=database
CACHE_STORE=database
QUEUE_CONNECTION=database
FILESYSTEM_DISK=local
# If Ollama/Qdrant run on the Docker host, use host.docker.internal.
OLLAMA_BASE_URL=http://host.docker.internal:11434
OLLAMA_CHAT_MODEL=llama3
OLLAMA_EMBEDDING_MODEL=nomic-embed-text
QDRANT_BASE_URL=http://host.docker.internal:6333
QDRANT_API_KEY=
QDRANT_COLLECTION=knowledge_base
QDRANT_VECTOR_SIZE=768
QDRANT_VECTOR_DISTANCE=Cosine
KB_MAX_FILE_SIZE=20480
KB_STORAGE_DISK=local
KB_CHUNK_MAX_WORDS=500
KB_CHUNK_OVERLAP_WORDS=75
KB_CHUNK_MIN_WORDS=30
KB_RAG_MAX_CHUNKS=5
KB_RAG_MAX_CONTEXT_WORDS=2000
KB_CHAT_RATE_LIMIT=20
KB_QUEUE_INGESTION=default
KB_QUEUE_EMBEDDING=default
KB_QUEUE_CHAT_LOG=default
RUN_LARAVEL_MIGRATIONS=false
RUN_LARAVEL_STORAGE_LINK=true