Files
web/docker-compose.host-nginx.yml

21 lines
626 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 与 docker-compose.yml 合并使用:宿主机 Nginx 独占 443 时,不要启动容器 yh_nginx。
# 并为 api / web / admin 绑定本机回环端口,供宿主机 Nginx 反代(见 nginx/yuheng.host.conf
#
# docker compose -f docker-compose.yml -f docker-compose.host-nginx.yml up -d
#
# 容器内 Nginx旧方案需显式启用 profile
# docker compose --profile compose-internal-nginx up -d
services:
api:
ports:
- "127.0.0.1:8088:8088"
web:
ports:
- "127.0.0.1:9080:80"
admin:
ports:
- "127.0.0.1:9081:80"
nginx:
profiles:
- compose-internal-nginx