изменил dockerfile и compose
This commit is contained in:
parent
267d6b76e6
commit
41b7170574
@ -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
|
||||
|
||||
@ -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"]
|
||||
Loading…
x
Reference in New Issue
Block a user