forked from DevOps/deploy.stack
docs(haproxy): 更新配置文档和stack.yml文件
添加HAProxy配置说明文档,并更新stack.yml文件以支持MySQL和Redis代理服务
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
# HAProxy 配置
|
||||||
|
|
||||||
|
使用 HAProxy 进行代理 MySQL 和 Redis 服务。
|
||||||
|
|
||||||
### 监控
|
### 监控
|
||||||
|
|
||||||
|
|||||||
@@ -4,11 +4,17 @@ services:
|
|||||||
haproxy:
|
haproxy:
|
||||||
image: ${IMAGE_TAG}
|
image: ${IMAGE_TAG}
|
||||||
restart: always
|
restart: always
|
||||||
|
command:
|
||||||
|
- -f
|
||||||
|
- /usr/local/etc/haproxy/haproxy.cfg
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "${REDIS_PORT}:${REDIS_PORT}"
|
||||||
- "443:443"
|
- "${MYSQL_TEST_PORT}:${MYSQL_TEST_PORT}"
|
||||||
|
- "${MYSQL_DEV_PORT}:${MYSQL_DEV_PORT}"
|
||||||
|
- "1936:1936"
|
||||||
volumes:
|
volumes:
|
||||||
- ${Volumes_Path}/haproxy/:/usr/local/etc/haproxy
|
- ${Volumes_Path}/haproxy/:/usr/local/etc/haproxy
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
environment:
|
environment:
|
||||||
- TZ=Asia/Shanghai
|
- TZ=Asia/Shanghai
|
||||||
Reference in New Issue
Block a user