From 41b7170574819d176148f1316eb17dc1e224804c Mon Sep 17 00:00:00 2001 From: r0mchik Date: Mon, 19 May 2025 10:46:44 +0700 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20do?= =?UTF-8?q?ckerfile=20=D0=B8=20compose?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yaml | 7 ++++++- web/Dockerfile | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index d4be232..f155342 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -52,11 +52,16 @@ services: redis: image: redis:alpine + command: > + sh -c " + python manage.py collectstatic --noinput + daphne -b 0.0.0.0 -p 8106 app.asgi:application + " volumes: - redis_data:/data ports: - - "6379:6379" + - "6378:6378" healthcheck: test: [ "CMD-SHELL", "redis-cli ping | grep PONG" ] interval: 1s diff --git a/web/Dockerfile b/web/Dockerfile index 611a66c..0d828d5 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -22,6 +22,6 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . COPY models ./models -RUN chmod +x docker/daphne_entrypoint.sh +# RUN chmod +x docker/daphne_entrypoint.sh -ENTRYPOINT ["./docker/daphne_entrypoint.sh"] \ No newline at end of file +# ENTRYPOINT ["./docker/daphne_entrypoint.sh"] \ No newline at end of file