forked from DevOps/deploy.stack
docs(haproxy): 更新配置文档和stack.yml文件
添加HAProxy配置说明文档,并更新stack.yml文件以支持MySQL和Redis代理服务
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user