feat(haproxy): 添加haproxy配置文件和部署文档

添加haproxy相关配置文件包括:
1. 部署文档readme.md
2. 环境变量配置文件env.cfg
3. docker-compose部署文件stack.yml
4. MySQL和Redis代理配置haproxy_mysql_redis.cfg
5. 主配置文件haproxy.cfg
This commit is contained in:
cnphpbb
2025-12-16 13:13:48 +08:00
parent 8778ae611f
commit 6b09c9b714
5 changed files with 230 additions and 0 deletions

14
haproxy/stack.yml Normal file
View File

@@ -0,0 +1,14 @@
## RUN:: docker compose -p haproxy --env-file ./haproxy/env.cfg -f ./haproxy/stack.yml up -d
services:
haproxy:
image: ${IMAGE_TAG}
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ${Volumes_Path}/haproxy/:/usr/local/etc/haproxy
- /etc/localtime:/etc/localtime:ro
environment:
- TZ=Asia/Shanghai