feat: add Docker deployment with HAProxy and blue-green strategy
This commit is contained in:
parent
3cfa59d3a5
commit
5be1e5add5
26 changed files with 56198 additions and 582 deletions
25
deploy/docker-compose-haproxy.yml
Normal file
25
deploy/docker-compose-haproxy.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
services:
|
||||
haproxy:
|
||||
image: haproxy:3.2
|
||||
stop_signal: SIGTERM
|
||||
container_name: haproxy
|
||||
command: ["haproxy", "-f", "/usr/local/etc/haproxy"]
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "8404:8404"
|
||||
volumes:
|
||||
- ./configs:/usr/local/etc/haproxy/:ro
|
||||
- ./certs:/certs:ro
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- proxynet
|
||||
healthcheck:
|
||||
test: ["CMD", "haproxy", "-c", "-f", "/usr/local/etc/haproxy"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
networks:
|
||||
proxynet:
|
||||
name: proxynet
|
||||
driver: bridge
|
||||
Loading…
Add table
Add a link
Reference in a new issue