This commit is contained in:
bvn13 2024-11-04 00:17:50 +03:00
parent 9537cd0426
commit e80ad2f389
2 changed files with 3 additions and 5 deletions

View File

@ -38,7 +38,6 @@ RUN ln -s /app/nltk_data /root/nltk_data
ENV PYTHONPATH=/app ENV PYTHONPATH=/app
ARG DATASET ARG DATASET
ARG PORT
ARG WEB_API_URL ARG WEB_API_URL
ARG RABBITMQ_HOST ARG RABBITMQ_HOST
ARG RABBITMQ_PORT ARG RABBITMQ_PORT
@ -46,7 +45,7 @@ ARG RABBITMQ_USER
ARG RABBITMQ_PASS ARG RABBITMQ_PASS
ARG RABBITMQ_QUEUE ARG RABBITMQ_QUEUE
ENV PORT=${PORT} \ ENV PORT=8080 \
DATASET=${DATASET} \ DATASET=${DATASET} \
WORKING_DIR=/app/nltk_data \ WORKING_DIR=/app/nltk_data \
FUCKING_DIR=/usr/local/lib/python3.10/site-packages/spam_detector_ai/models \ FUCKING_DIR=/usr/local/lib/python3.10/site-packages/spam_detector_ai/models \
@ -60,4 +59,4 @@ ENV PORT=${PORT} \
RUN python3 -m src.preparer RUN python3 -m src.preparer
ENTRYPOINT [ "bash", "-c", "while true; do sleep 1; done" ] ENTRYPOINT [ "bash", "-c", "while true; do sleep 1; done" ]

View File

@ -11,7 +11,6 @@ services:
build: ./ build: ./
container_name: spam-detector-decision-maker container_name: spam-detector-decision-maker
environment: environment:
- PORT=${PORT:-8080}
- TOKEN=token12345 - TOKEN=token12345
- RABBITMQ_HOST=${RABBITMQ_HOST} - RABBITMQ_HOST=${RABBITMQ_HOST}
- RABBITMQ_PORT=${RABBITMQ_PORT:-5672} - RABBITMQ_PORT=${RABBITMQ_PORT:-5672}
@ -26,7 +25,7 @@ services:
- ${MODELS_DIR}:/app/models - ${MODELS_DIR}:/app/models
restart: always restart: always
ports: ports:
- "8080:${PORT:-8080}" - "${PORT:-8080}:8080"
networks: networks:
- spam-detector-internal - spam-detector-internal
- rabbitmq - rabbitmq