mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
add dockerfile and fix trival bugs (#78)
This commit is contained in:
@ -84,6 +84,24 @@ services:
|
||||
restart: always
|
||||
|
||||
|
||||
ragflow:
|
||||
depends_on:
|
||||
- es01
|
||||
- mysql
|
||||
- minio
|
||||
image: infiniflow/ragflow:v1.0
|
||||
container_name: ragflow-server
|
||||
ports:
|
||||
- ${SVR_HTTP_PORT}:9380
|
||||
volumes:
|
||||
- ./service_conf.yaml:/ragflow/conf/service_conf.yaml
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./ragflow-logs:/ragflow/logs
|
||||
networks:
|
||||
- ragflow
|
||||
restart: always
|
||||
|
||||
|
||||
volumes:
|
||||
esdata01:
|
||||
driver: local
|
||||
|
||||
24
docker/entrypoint.sh
Normal file
24
docker/entrypoint.sh
Normal file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
python rag/svr/task_broker.py &
|
||||
|
||||
function task_exe(){
|
||||
while [ 1 -eq 1 ];do mpirun -n 2 python rag/svr/task_executor.py ; done
|
||||
}
|
||||
|
||||
function watch_broker(){
|
||||
while [ 1 -eq 1];do
|
||||
C=`ps aux|grep "task_broker.py"|grep -v grep|wc -l`;
|
||||
if [ $C -lt 1 ];then
|
||||
python rag/svr/task_broker.py &
|
||||
fi
|
||||
sleep 5;
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
task_exe &
|
||||
sleep 10;
|
||||
watch_broker &
|
||||
|
||||
python api/ragflow_server.py
|
||||
36
docker/service_conf.yaml
Normal file
36
docker/service_conf.yaml
Normal file
@ -0,0 +1,36 @@
|
||||
ragflow:
|
||||
host: 0.0.0.0
|
||||
http_port: 9380
|
||||
mysql:
|
||||
name: 'rag_flow'
|
||||
user: 'root'
|
||||
password: 'infini_rag_flow'
|
||||
host: '127.0.0.1'
|
||||
port: 5455
|
||||
max_connections: 100
|
||||
stale_timeout: 30
|
||||
minio:
|
||||
user: 'rag_flow'
|
||||
password: 'infini_rag_flow'
|
||||
host: '127.0.0.1:9000'
|
||||
es:
|
||||
hosts: 'http://127.0.0.1:1200'
|
||||
user_default_llm:
|
||||
factory: '通义千问'
|
||||
api_key: 'sk-xxxxxxxxxxxxx'
|
||||
oauth:
|
||||
github:
|
||||
client_id: 302129228f0d96055bee
|
||||
secret_key: e518e55ccfcdfcae8996afc40f110e9c95f14fc4
|
||||
url: https://github.com/login/oauth/access_token
|
||||
authentication:
|
||||
client:
|
||||
switch: false
|
||||
http_app_key:
|
||||
http_secret_key:
|
||||
site:
|
||||
switch: false
|
||||
permission:
|
||||
switch: false
|
||||
component: false
|
||||
dataset: false
|
||||
Reference in New Issue
Block a user