2026-03-14 17:29:03 +08:00
2026-03-14 15:37:24 +08:00
2026-03-14 17:29:03 +08:00
2026-03-14 17:29:03 +08:00

Ingress

这里是本机 http 网关容器的配置,使用了 traefik 作为网关组件,可以自动化证书申请与更新

部署项目

  1. 生成自签名证书
mkdir -p traefik/gen/certs
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
  -keyout traefik/gen/certs/local.key -out traefik/gen/certs/local.crt \
  -subj "/CN=*.lanhuip.com"
  1. 创建 acme.json 文件
touch traefik/gen/acme.json
chmod 600 traefik/gen/acme.json
  1. 启动项目
docker-compose up -d
Description
docker 统一网关
Readme 26 KiB