移除冗余配置并优化启动脚本

This commit is contained in:
xiaochou164 2025-05-15 19:55:42 +08:00
parent 3f2aca3461
commit ec217bc93b
1 changed files with 1 additions and 11 deletions

View File

@ -32,15 +32,9 @@ services:
searxng:
image: searxng/searxng
container_name: lobe-searxng
volumes:
- '/app/ai-chat/searxng-settings.yml:/etc/searxng/settings.yml'
environment:
- 'SEARXNG_SETTINGS_FILE=/etc/searxng/settings.yml'
restart: always
networks:
- lobe-network
env_file:
- /app/ai-chat/lobe-chat-allinone-env.env
lobe:
image: lobehub/lobe-chat-database
@ -63,15 +57,11 @@ services:
- 'S3_SECRET_ACCESS_KEY=${S3_SECRET_ACCESS_KEY}'
- 'S3_PUBLIC_DOMAIN=${S3_PUBLIC_DOMAIN}'
- 'SEARXNG_URL=http://searxng:8080'
env_file:
- /app/ai-chat/lobe-chat-allinone-env.env
restart: always
entrypoint: >
/bin/sh -c "
/bin/node /app/startServer.js &
LOBE_PID=\$!
/bin/node /app/startServer.js
sleep 3
wait \$LOBE_PID
"
volumes: