Files
ssw__ipass/compose.yml
T
admin 0b1d983cac 定位更名:尚数网 统一网关(原「公司统一动态域名解析出口」)
- readme 头部改为统一网关定位,明确两类能力:动态域名、LLM API 路由,预留未来扩展
- CLAUDE.md / compose.yml / Cargo.toml description / lib.rs 模块注释同步更名
2026-09-11 15:58:41 +08:00

39 lines
1.6 KiB
YAML
Raw 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
#
# 与旧版(官方 openresty 镜像)的区别:镜像需要自己构建(编译 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