回复于:orbstack中为Doker自定义域名 (Custom Domains)的方法参数和命令

社区话题 Linux/macOS 与自动化运维 orbstack中为Doker自定义域名 (Custom Domains)的方法参数和命令 回复于:orbstack中为Doker自定义域名 (Custom Domains)的方法参数和命令

#1142

追光
管理员
docker run -d \
  --name your-amh-container \
  -l dev.orbstack.domains=your-site.local \ # 如果您设置了自定义域名
  -l dev.orbstack.http-port=80 \ # ⬅️ 关键:强制指定 Web 服务端口为 80
  -p 80:80 \ # 确保80端口映射(虽然域名访问不需要,但有时直连localhost需要)
  -p 55680:55680 \ # 管理面板端口
  your-amh-image

也可以这样写

version: '3'
services:
  amh:
    image: your-amh-image
    container_name: your-amh-container
    ports:
      - "80:80"
      - "55680:55680"
    labels:
      - "dev.orbstack.domains=your-site.local" # 可选:自定义域名
      - "dev.orbstack.http-port=80" # ⬅️ 关键:强制指定主Web端口为80