Sign inSign up

joppsdev/nginxwsgi

By joppsdev

Updated over 5 years ago

Nginx server and python with uwsgi enabled for web apps

Image
0

197

joppsdev/nginxwsgi repository overview

Command for starting the container:

  • docker run --name nginxwsgi-server -v "AbsolutePathToWebFolder:/app" -p 80:80 -d joppsdev/nginxwsgi:tagname bash -c "service nginx restart && uwsgi --socket :8000 --wsgi-file /app/PATH_TO_SCRIPT"

You will need to replace PATH_TO_SCRIPT with the path where the script file is inside your project. Also add the file https://github.com/nginx/nginx/blob/master/conf/uwsgi_params in the root directory of your project (keep it with the filename uwsgi_params).

Version 1.0 contains the following:

  • Ubuntu 20.04
  • Nginx 1.18.0
  • Python 3.8.5

NOTE: If you need django, you need to append to the command above before the nginx restart, the commands that install the packages that you need. Eg. below:

  • pip3 install pymysql django && service nginx restart && uwsgi --socket :8000 --wsgi-file /app/PATH_TO_SCRIPT

Tag summary

Content type

Image

Digest

Size

169.4 MB

Last updated

over 5 years ago

docker pull joppsdev/nginxwsgi