изменил dockerfile и compose

This commit is contained in:
r0mchik 2025-05-19 10:46:44 +07:00
parent 267d6b76e6
commit 41b7170574
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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"]
# ENTRYPOINT ["./docker/daphne_entrypoint.sh"]