This commit is contained in:
user committed 2025-07-27 22:38:34 +03:00
1 parent 274c8f1f09
commit 34d39a8580
35 files changed
+3761 -7102

No files matched your search

+5 -4
View File
@@ -29,15 +29,16 @@ RUN chown -R myapp:myapp /app
USER myapp
# Порт приложения
EXPOSE 15100
EXPOSE 8000
# Переменные окружения
ENV PYTHONPATH=/app
ENV PYTHONUNBUFFERED=1
ENV USE_FASTAPI=true
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD curl -f http://localhost:15100/health || exit 1
CMD curl -f http://localhost:8000/api/system/health || exit 1
# Команда запуска
CMD ["python", "start_my_network.py"]
# Команда запуска FastAPI с uvicorn
CMD ["uvicorn", "app.fastapi_main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"]