Files
CloudLab/deploy/docker-compose.yml
CloudLabandWorkBuddy 54876a5f26
CloudLab CI/CD / 门禁 doctor (push) Failing after 30s
CloudLab CI/CD / 单元测试 (push) Skipped
CloudLab CI/CD / 归档完整性 (push) Skipped
CloudLab CI/CD / 构建站点与归档 (push) Skipped
CloudLab CI/CD / 部署到 lab.hdtime.space(rsync) (push) Skipped
CloudLab CI/CD / 构建镜像并推送 Gitea 容器仓库 (push) Skipped
CloudLab CI/CD / 容器部署到 lab.hdtime.space (push) Skipped
CloudLab CI/CD / 发布版本(Tag) (push) Skipped
fix(deploy): 容器部署改用 8080 端口,避开被占用的 80
- docker-compose / deploy-container.sh / CI deploy-container 均改宿主机发布端口 80→8080
  (容器内 nginx 仍监听 80);端口可用 CLOUDLAB_SITE_PORT 覆盖
- VERSION 3.7.3;同步 ARCHITECTURE/CONTRIBUTING/CHANGELOG

Co-Authored-By: WorkBuddy <noreply@workbuddy.ai>
2026-11-11 07:59:40 +08:00

24 lines
1.0 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.
# CloudLab 容器部署(docker compose)
# 用法(在仓库根或 deploy/ 目录):
# docker compose -f deploy/docker-compose.yml up -d --build
# 镜像同时可推送至 Gitea 容器仓库:git.hdtime.space/hm/cloudlab
#
# 端口:宿主机发布端口默认 8080(容器内 nginx 仍监听 80),
# 以避免与服务器上已占用的 80 端口(如 Gitea 自带 nginx)冲突。
# 可用环境变量覆盖:CLOUDLAB_SITE_PORT=8090 docker compose ... up -d --build
# 访问地址:http://lab.hdtime.space:8080/
services:
cloudlab:
build:
context: ..
dockerfile: deploy/Dockerfile
image: git.hdtime.space/hm/cloudlab:latest
container_name: cloudlab-site
ports:
- "${CLOUDLAB_SITE_PORT:-8080}:80"
restart: unless-stopped
# HTTPS(可选,后续扩展):在宿主机用 certbot 申请证书后,把 443 与证书挂进容器:
# volumes:
# - /etc/letsencrypt:/etc/letsencrypt:ro
# 并改用 deploy/nginx.tls.conf(监听 443 + 证书路径)。