Skip to content

r-t-k/StreamEngine-UI

Repository files navigation

StreamEngine-UI (Deprecated)

Moving to decoupled Vue based UI: https://github.com/r-t-k/StreamEngine-Frontend

Currently this repo contains a monolith django app comprising the app features of UI, Admin, and API. The plan is ultimately to separate it into those respective pieces, and leave this repo to be only for UI.

Deploy

There are essentially two parts right now, with a third (db) being worked on.

You have the docker-compose portion and the Nginx portion

Docker

Install docker and docker-compose

clone this repo and check directory names editing the docker compose file as necessary

then run docker-compose up --build -d

uWSGI config/dockerfile

Hot reload is turned on by default

to disable: remove the param:

--py-autoreload=1

from

CMD ["uwsgi", "--py-autoreload=1"]

NGINX

Install Nginx to your server then create ui.conf under /etc/nginx/sites-available copy the contents of my nginx.conf to ui.conf then run ln -s /etc/nginx/sites-available/ui.conf /etc/nginx/sites-enabled/ Reload Nginx

config

edit the ui.conf for domain and ssl

Reference

Nginx: https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04

Django over uwsgi: https://www.eidel.io/2017/07/10/dockerizing-django-uwsgi-postgres/

Dockerfile: https://www.caktusgroup.com/blog/2017/03/14/production-ready-dockerfile-your-python-django-app/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published