Use 2 docker containers for bot and webservice

This commit is contained in:
2022-03-12 20:02:39 +01:00
parent 5002d8509b
commit fdd7bc2d4c
14 changed files with 48 additions and 16 deletions

View File

@@ -1,2 +0,0 @@
#!/usr/bin/env sh
curl -s http://localhost:80/ -o /dev/null || exit 1

View File

@@ -1,41 +0,0 @@
user root;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 1024;
use epoll;
multi_accept on;
}
http {
access_log /dev/stdout;
error_log /dev/stdout;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
index index.html index.htm;
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name homeserver.flokaiser.com;
root /var/www/html;
location / {
include uwsgi_params;
uwsgi_pass unix:/tmp/uwsgi.socket;
uwsgi_read_timeout 1h;
uwsgi_send_timeout 1h;
proxy_send_timeout 1h;
proxy_read_timeout 1h;
}
}
}

View File

@@ -1,5 +0,0 @@
#!/usr/bin/env sh
#nginx -g "daemon off;" &
#uwsgi --ini deploy/uwsgi.ini
python3 app.py

View File

@@ -1,12 +0,0 @@
[uwsgi]
module = app:app
uid = root
gid = root
master = true
processes = 5
socket = /tmp/uwsgi.socket
chmod-sock = 664
vacuum = true
die-on-term = true