Files
deploy.stack/gitea/env.cfg.example

31 lines
1.3 KiB
Plaintext
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.
# ============================================================
# Gitea 部署 — 公共环境变量
# 复制为 env.cfg 后填入真实值env.cfg 已在 .gitignore 中忽略
# ============================================================
#
# 使用方式:
# cp env.cfg.example env.cfg
# docker compose -p gitea --env-file ./env.cfg -f ./lky-prod.yml up -d
#
# 数据库等敏感配置在容器 /etc/gitea/app.ini 中配置(挂载自 config/ 目录)
# ---------- 镜像 ----------
# Gitea 版本号rootless 镜像带 -rootless 后缀)
IMAGE_TAG_VER=1.26.2-rootless
# 完整镜像引用私有仓库示例hub.tp229.com:3500/gitea/gitea:${IMAGE_TAG_VER}
IMAGE_TAG=gitea/gitea:${IMAGE_TAG_VER}
# ---------- 数据卷 ----------
# 宿主机持久化目录
# 部署前手动创建并授权:
# mkdir -pv /data/volumes/gitea/{data,config}
# chown -R 1000:1000 /data/volumes/gitea/{data,config} # rootless 镜像必须
Volumes_Path=/data/volumes/gitea
# ---------- SSH 端口 ----------
# 容器内 SSH 端口固定 2222按部署主机二选一
# LAY_SSH_HOST_PORT —— 宿主 22 空闲的机器lky-prod.yml 引用)
# SSH_HOST_PORT —— 宿主 22 被占用的机器rpi-prod.yml 引用,如树莓派)
LAY_SSH_HOST_PORT=22
SSH_HOST_PORT=2222