feat: setup rest_api and prepare coolify deployment

This commit is contained in:
mstfyldz
2026-08-08 17:31:25 +03:00
parent 2ead0b455c
commit 2131e3c71d
2 changed files with 234 additions and 1 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ COPY README.md ./
COPY app.py ./
COPY asgi_app.py ./
COPY mcp_server_main.py ./
COPY rest_api.py ./
# Copy MCP modules and shared packages
COPY anayasa_mcp_module ./anayasa_mcp_module
@@ -51,4 +52,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD python -c "import httpx; httpx.get('http://localhost:8000/health', timeout=5)" || exit 1
# Run the ASGI application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "rest_api:app", "--host", "0.0.0.0", "--port", "8000"]