Загрузить файлы в «alert-receiver»
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
APP_NAME=alert-receiver
|
||||||
|
APP_HOST=0.0.0.0
|
||||||
|
APP_PORT=8080
|
||||||
|
|
||||||
|
WEBHOOK_TOKEN=change_me_webhook_token
|
||||||
|
|
||||||
|
FORWARD_ENABLED=true
|
||||||
|
PROCESSOR_URL=http://alert-processor-ingest:8081/internal/events
|
||||||
|
INTERNAL_API_TOKEN=change_internal_token
|
||||||
|
FORWARD_TIMEOUT_SECONDS=10
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
FROM python:3.12-slim
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
ENV PYTHONDONTWRITEBYTECODE=1
|
||||||
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
|
COPY requirements.txt .
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
COPY app ./app
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
fastapi>=0.115,<1.0
|
||||||
|
uvicorn[standard]>=0.30,<1.0
|
||||||
|
httpx>=0.27,<1.0
|
||||||
|
pydantic>=2.7,<3.0
|
||||||
|
python-dotenv>=1.0,<2.0
|
||||||
Reference in New Issue
Block a user