update
This commit is contained in:
1 parent
274c8f1f09
commit
34d39a8580
35 files changed
+3761
-7102
No files matched your search
+5
-4
@@ -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"]
|
||||
Reference in new issue
Block a user