mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-05-21 15:14:45 +02:00
Fix healthcheck to verify PID and add DM-only conversational mode
- 6a: Change healthcheck in Dockerfile and docker-compose.yml to verify the PID file exists and the process is alive (kill -0) instead of testing SQLite connectivity, which only proves the DB file exists - 6b: In DMs, skip !commands so MeshMonitor or other bots handle them. MeshAI only responds conversationally in DMs (no bang commands) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
32cd2b3427
commit
ab7e52b9fb
3 changed files with 6 additions and 7 deletions
|
|
@ -74,9 +74,9 @@ VOLUME ["/data"]
|
|||
# Expose ttyd web config port
|
||||
EXPOSE 7682
|
||||
|
||||
# Health check
|
||||
# Health check - verify bot process is alive via PID file
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
|
||||
CMD python -c "import sqlite3; sqlite3.connect('/data/conversations.db').execute('SELECT 1')" || exit 1
|
||||
CMD test -f /tmp/meshai.pid && kill -0 $(cat /tmp/meshai.pid) 2>/dev/null || exit 1
|
||||
|
||||
# Entrypoint handles config and ttyd
|
||||
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue