2025-12-16 13:13:48 +08:00
|
|
|
## RUN:: docker compose -p haproxy --env-file ./haproxy/env.cfg -f ./haproxy/stack.yml up -d
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
haproxy:
|
|
|
|
|
image: ${IMAGE_TAG}
|
|
|
|
|
restart: always
|
2025-12-16 14:59:26 +08:00
|
|
|
command:
|
|
|
|
|
- -f
|
|
|
|
|
- /usr/local/etc/haproxy/haproxy.cfg
|
2025-12-16 13:13:48 +08:00
|
|
|
ports:
|
2025-12-16 14:59:26 +08:00
|
|
|
- "${REDIS_PORT}:${REDIS_PORT}"
|
|
|
|
|
- "${MYSQL_TEST_PORT}:${MYSQL_TEST_PORT}"
|
|
|
|
|
- "${MYSQL_DEV_PORT}:${MYSQL_DEV_PORT}"
|
|
|
|
|
- "1936:1936"
|
2025-12-16 13:13:48 +08:00
|
|
|
volumes:
|
|
|
|
|
- ${Volumes_Path}/haproxy/:/usr/local/etc/haproxy
|
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2025-12-16 14:59:26 +08:00
|
|
|
- /etc/timezone:/etc/timezone:ro
|
2025-12-16 13:13:48 +08:00
|
|
|
environment:
|
|
|
|
|
- TZ=Asia/Shanghai
|