loko/docker-entrypoint.sh
2026-07-22 14:48:40 +02:00

11 lines
398 B
Bash

#!/bin/bash
# Point d'entrée du conteneur web en production.
# En développement, ce script est court-circuité par la directive
# "command: python manage.py runserver ..." dans docker-compose.yml.
set -e
exec gunicorn streetup.wsgi:application \
--bind 0.0.0.0:8000 \
--workers "${GUNICORN_WORKERS:-4}" \
--threads "${GUNICORN_THREADS:-2}" \
--timeout "${GUNICORN_TIMEOUT:-120}"