Add files necessary for production deployment

* Dockerfile, docker-compose template
* nginx config
* uwsgi config
* wait-for-postgres script
* requirements.txt
* Some other stuff

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-07-18 17:04:37 -07:00
parent cde051653d
commit c4f910c6a8
10 changed files with 193 additions and 2 deletions

14
uwsgi.ini Normal file
View File

@@ -0,0 +1,14 @@
[uwsgi]
logformat = %(method) %(status) %(uri) %(proto)
log-5xx = true
#uid = uwsgi
processes = 5
harakiri = 20
maxrequests = 5000
socket = 0.0.0.0:3031
#plugins = python
protocol = uwsgi
chdir = /app
module = threadchat.wsgi:application