Files
ipass__ipass/compose.yml
T
admin db99ce1521 docs: 文档与注释系统性对齐插件化现状 + 清理前身实现引用
- readme §16 补 1.0.10-1.0.13 四条变更记录;§12.6 tag 表补 1.0.9-1.0.13
- readme §5 架构图更新为插件化结构(PLUGINS 注册表/四开关/四表)
- readme §11 补 api-proxies.json 数据模型小节;§8 管理台表格补 API 代理行
- readme/CLAUDE.md 测试断言数对齐 262(102+160);三个 JSON 改四个
- CLAUDE.md LLM 落点表改 crates/plugin-llm 路径;发版补 git push 前置教训
- 清理全部前身实现引用(readme 三处、CLAUDE.md 性能章节、util.rs 注释)
- PLUGIN_ARCHITECTURE.md 增补 1.0.13 sso 合流记录
2026-09-13 18:27:28 +08:00

39 lines
1.5 KiB
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.
# 尚数网 统一网关(iPass 山海关)—— nginx + Rust 扩展模块
#
# 用法:
# export ADMIN_INIT_PASSWORD='<初始管理员密码>' # 仅首次启动、users.json 不存在时生效
# docker compose up -d --build
#
# 镜像需要自建(编译 nginx + Rust 模块):
# 因此用 build 而不是 image。conf 仍为只读挂载,data 可写。
services:
gateway:
build:
context: .
dockerfile: Dockerfile
image: ipass-gateway:2.0.0
container_name: ipass-gateway
ports:
- "80:80"
# TLS 未配置时(conf/tls/ 为空)无监听者,映射空转无影响
- "443:443"
# 企业/管理/LLM 三域名同端口 18098:路由器 18098 → 本机 18098,
# 由模块按 ipass_proxy / ipass_llm / ipass_api 分别处理
- "18098:18098"
environment:
# 首次启动播种 admin 账号用的密码;不设则用 123456(务必在首次登录后修改)
- ADMIN_INIT_PASSWORD=${ADMIN_INIT_PASSWORD:-}
volumes:
- ./conf/nginx.conf:/usr/local/nginx/conf/nginx.conf:ro
- ./conf/tls:/usr/local/nginx/conf/tls:ro # 可选 HTTPS:放 *.conf 即启用(见 conf/tls/README.md)
- ./www:/usr/local/nginx/www:ro # 管理台静态页
- ./data:/usr/local/nginx/data # 需可写:users.json / domains.json
# 日志刻意不挂载:镜像里已软链到 stdout/stderr,用 `docker compose logs` 看
networks:
- proxy-network
restart: always
networks:
proxy-network:
driver: bridge