Gunicorn can be started with SSL certs using two additional parameters.
--certfile=/certs/tls.crt --keyfile=/certs/tls.key
The call to start Gunicorn is in docker/entrypoint.sh. The value for these parameters can be provided as environment variables. The code needs to be updated to include certfile and keyfile parameters only if they're available as environment variables.