forked from DevOps/deploy.stack
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:
14
haproxy/stack.yml
Normal file
14
haproxy/stack.yml
Normal 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
|
||||
Reference in New Issue
Block a user