feat: add Docker deployment with HAProxy and blue-green strategy

This commit is contained in:
badblocks 2025-07-21 23:25:19 -07:00
parent 3cfa59d3a5
commit 5be1e5add5
No known key found for this signature in database
26 changed files with 56198 additions and 582 deletions

31
deploy/haproxy.cfg Normal file
View file

@ -0,0 +1,31 @@
global
daemon
log stdout format raw local0 info
maxconn 2000
defaults
mode http
log global
timeout connect 5s
timeout client 30s
timeout server 30s
timeout check 5s
retries 3
option httplog
option dontlognull
option redispatch
frontend haproxy_entrypoint
bind :80
bind :443 ssl crt /certs/ verify required ca-file /certs/ca.pem
http-request redirect scheme https unless { ssl_fc }
use_backend %[req.hdr(host),lower,word(1,:)] # strip out port from host
resolvers docker
nameserver dns1 127.0.0.11:53
resolve_retries 3
timeout resolve 1s
timeout retry 1s
hold valid 10s
hold obsolete 30s