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

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