docs(haproxy): 更新配置文档和stack.yml文件

添加HAProxy配置说明文档,并更新stack.yml文件以支持MySQL和Redis代理服务
This commit is contained in:
cnphpbb
2025-12-16 14:59:26 +08:00
parent 6b09c9b714
commit 09ee5cfc66
2 changed files with 11 additions and 2 deletions

View File

@@ -4,11 +4,17 @@ services:
haproxy:
image: ${IMAGE_TAG}
restart: always
command:
- -f
- /usr/local/etc/haproxy/haproxy.cfg
ports:
- "80:80"
- "443:443"
- "${REDIS_PORT}:${REDIS_PORT}"
- "${MYSQL_TEST_PORT}:${MYSQL_TEST_PORT}"
- "${MYSQL_DEV_PORT}:${MYSQL_DEV_PORT}"
- "1936:1936"
volumes:
- ${Volumes_Path}/haproxy/:/usr/local/etc/haproxy
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
- TZ=Asia/Shanghai