forked from DevOps/deploy.stack
添加haproxy相关配置文件包括: 1. 部署文档readme.md 2. 环境变量配置文件env.cfg 3. docker-compose部署文件stack.yml 4. MySQL和Redis代理配置haproxy_mysql_redis.cfg 5. 主配置文件haproxy.cfg
14 lines
355 B
YAML
14 lines
355 B
YAML
## 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 |