add docker containerization

This commit is contained in:
hex
2025-01-18 18:03:17 -08:00
parent d257759d6f
commit f7deb83cb5
3 changed files with 94 additions and 0 deletions

38
gunicorn.conf.py Normal file
View File

@@ -0,0 +1,38 @@
# Gunicorn configuration file
import multiprocessing
# Server socket
bind = "0.0.0.0:5000"
backlog = 2048
# Worker processes
workers = multiprocessing.cpu_count() * 2 + 1
worker_class = "sync"
worker_connections = 1000
timeout = 30
keepalive = 2
# Logging
accesslog = "-"
errorlog = "-"
loglevel = "info"
# Process naming
proc_name = "butter-garden"
# Server mechanics
daemon = False
pidfile = None
umask = 0
user = None
group = None
tmp_upload_dir = None
# SSL
keyfile = None
certfile = None
# Security
limit_request_line = 4096
limit_request_fields = 100
limit_request_field_size = 8190