Files
dsh f81d41c5ca 初始化:炫恒网络官网(五个页面)
站点:纯静态 HTML + CSS + 原生 JS,零框架零构建
页面:首页 / 合作品牌 / 荣誉资质 / 客户案例 / 关于我们

内容:
- site/          站点本体(含已压缩 webp 图片,约 4.8 MB)
- deploy/        Docker Compose / Caddy / Apache 部署配置
- _tools/        开发自检脚本与部署脚本
- Dockerfile     自建 nginx 镜像方案
- README.md      项目文档

设计:品牌黄 #ffc107 + 白,深蓝仅用于页脚;菜单长期置顶;
      交互动效只加在关键词与区块级元素上。

素材说明:原始素材(背景图/老网站/方案/荣誉资质/合作品牌,约 290 MB)
         未纳入版本控制,站点使用的是 site/assets 内已处理压缩的图片。
2026-10-13 16:12:41 +08:00

50 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.
# ==============================================================================
# 上海炫恒网络系统有限公司 官网 —— Docker Compose 部署
#
# 用法:
# docker compose up -d --build 构建并后台启动
# docker compose logs -f 查看日志
# docker compose ps 查看健康状态
# docker compose down 停止并删除容器
#
# 改端口:在项目根目录建 .env 文件,写入 SITE_PORT=80
# (默认 8080,即 http://localhost:8080)
# ==============================================================================
services:
web:
build:
context: .
dockerfile: Dockerfile
image: xuanheng-website:latest
container_name: xuanheng-web
# 宿主机端口 : 容器端口(容器内 nginx 固定监听 80)
# 想用 80 端口:把下面改成 "80:80",或建 .env 写 SITE_PORT=80
ports:
- "${SITE_PORT:-8080}:80"
restart: unless-stopped
environment:
- TZ=Asia/Shanghai
# 与 Dockerfile 里的 HEALTHCHECK 一致,写在这里便于查看
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1/healthz"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
# 纯静态站点不需要额外权限,收紧容器权限
security_opt:
- no-new-privileges:true
# 限制日志体积,避免长期运行把磁盘写满
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"