mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-21 22:18:04 +01:00
Fix stop container
This commit is contained in:
parent
f261ceadab
commit
5d3869403d
4 changed files with 2 additions and 8 deletions
|
@ -98,7 +98,6 @@ COPY --chown=django:django --from=venv $STATIC_ROOT $STATIC_ROOT
|
|||
WORKDIR /app
|
||||
COPY pyproject.toml poetry.lock ./
|
||||
ADD --chown=django:django ./src ./src
|
||||
ADD --chown=django:django ./docker ./docker
|
||||
COPY --chown=django:django tasks.py ./tasks.py
|
||||
|
||||
|
||||
|
@ -116,4 +115,4 @@ WORKDIR /app/src
|
|||
HEALTHCHECK --start-period=30s CMD python -c "import requests; requests.get('http://localhost:8000', timeout=2)"
|
||||
|
||||
USER django
|
||||
CMD ["/app/docker/run.sh"]
|
||||
CMD ["gunicorn", "charasheet.wsgi", "--graceful-timeout=5", "--worker-tmp-dir=/dev/shm", "--workers=2", "--threads=4", "--worker-class=gthread", "--bind=0.0.0.0:8000", "--log-file=-"]
|
||||
|
|
|
@ -4,7 +4,6 @@ services:
|
|||
django:
|
||||
build: .
|
||||
image: crocmagnon/charasheet
|
||||
command: /app/src/manage.py runserver 0.0.0.0:8000
|
||||
env_file:
|
||||
- envs/docker-local-envs.env
|
||||
volumes:
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -eux
|
||||
python manage.py migrate --noinput
|
||||
gunicorn charasheet.wsgi -b 0.0.0.0:8000 --log-file -
|
|
@ -3,7 +3,7 @@
|
|||
###############################################################################
|
||||
DJANGO_SETTINGS_MODULE=charasheet.settings
|
||||
SECRET_KEY="UkZF3iM%Fqdj6HWugPWS26q!tmquRm#8G^X#&AiXiT$r2t%N4F"
|
||||
DEBUG=True
|
||||
DEBUG=False
|
||||
ALLOWED_HOSTS=localhost,127.0.0.1
|
||||
|
||||
###############################################################################
|
||||
|
|
Loading…
Reference in a new issue