DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.
Python ai-agentsai-tutorclawbotcli-tooldeepresearchinteractive-learninglearningmulti-agent-systemsrag
feat(docker): make BACKEND_HOST and FRONTEND_HOST env-configurable
nanwfc70ede6646c
diff --git a/Dockerfile b/Dockerfileindex 46c2a1e83..484d65983 100644--- a/Dockerfile+++ b/Dockerfile@@ -240,13 +240,18 @@ RUN cat > /app/start-backend.sh <<'EOF'set -eBACKEND_PORT=${BACKEND_PORT:-8001}+BACKEND_HOST=${BACKEND_HOST:-0.0.0.0}-echo "[Backend] π Starting FastAPI backend on port ${BACKEND_PORT}..."+echo "[Backend] π Starting FastAPI backend on ${BACKEND_HOST}:${BACKEND_PORT}..."# Run uvicorn directly - the application's logging system already handles:# 1. Console output (visible in docker logs)# 2. File logging to data/user/logs/ai_tutor_*.log-exec python -m uvicorn deeptutor.api.main:app --host 0.0.0.0 --port ${BACKEND_PORT} --no-access-log+#+# BACKEND_HOST defaults to 0.0.0.0 (LAN-reachable, matches bridge-mode+# port publishing). Set BACKEND_HOST=127.0.0.1 when running with+# network_mode: host to keep the backend on loopback only.+exec python -m uvicorn deeptutor.api.main:app --host ${BACKEND_HOST} --port ${BACKEND_PORT} --no-access-logEOFRUN sed -i 's/\r$//' /app/start-backend.sh && chmod +x /app/start-backend.sh@@ -261,10 +266,11 @@ RUN cat > /app/start-frontend.sh <<'EOF'set -eFRONTEND_PORT=${FRONTEND_PORT:-3782}-echo "[Frontend] π Starting Next.js frontend on port ${FRONTEND_PORT}..."+FRONTEND_HOST=${FRONTEND_HOST:-0.0.0.0}+echo "[Frontend] π Starting Next.js frontend on ${FRONTEND_HOST}:${FRONTEND_PORT}..."export PORT=${FRONTEND_PORT}-export HOSTNAME=0.0.0.0+export HOSTNAME=${FRONTEND_HOST}exec node /app/web/server.jsEOF