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