Public Repository

Last pushed: a year ago
Short Description
Image with Nginx + uwsgi + supervisor + virtualenv with Python 3.4 to host django app
Full Description

The images will run the app in the folder inside the container : /home/app

Example Dockerfile

FROM rodrigorodrigues/django_nginx_uwsgi

#Add the project to the image
ADD my_app /home/app/my_app
ADD myproject /home/app/myproject
ADD /home/app
ADD /home/app
ADD requirements.txt /home/app

#Install the requirements of the project
RUN /home/app/virtualenv/bin/pip install -r /home/app/requirements.txt

#Activate virtualenv and run the migrate command
RUN . /home/app/virtualenv/bin/activate; \
python migrate;

#Starts the supervisor with Nginx and uwsgi
CMD ["/usr/bin/supervisord", "-n"]

Example to run the container

docker run -d -p 80:80 --name my_django_container my_django_image

Details about the image

The image uses the best and recommended settings to serve django app, nginx as reverse proxy with uwsgi using unix socket

Docker Pull Command

Comments (0)