This repository provides Dockerfile for Read The Docs
Built images are uploaded to index.docker.io
There are currently two tags available depending of the way to distribute content:
latest: Which rely on the django-manage runserver command, this should not be used for productiongunicorn: Which serve python files through the Gunicorn WSGI HTTP server.
If you are choosing this option, as per documentation, you'll need to use a proxy server in front of Gunicorn workers.docker run -d -p 8000:8000 gyzpunk/readthedocsThose images will expose the port 8000 for the web application (to proxify behind a real webserver in case of gunicorn usage) as well as the /usr/src/app volume which contains all the django project.
You can also use the following environment variables while building Docker image :
RTD_PRODUCTION_DOMAIN: Stands for PRODUCTION_DOMAINin readthedocs settings (can be formed like "{host}:{port}")RTD_SLUMBER_PASSWORD: Stands for SLUMBER_PASSWORDin readthedocs settings (will be used as "docbuilder" account password)DJANGO_SETTINGS_MODULE: Django settings module to be usedDJANGO_DB_ENGINEDJANGO_DB_NAMEDJANGO_DB_USERDJANGO_DB_PASSWORDDJANGO_DB_HOSTDJANGO_DB_PORTContent type
Image
Digest
Size
585.5 MB
Last updated
over 10 years ago
docker pull gyzpunk/readthedocs