SHA256
forked from course-team/tjhlp-gitea
添加 init-admin.sh 脚本来自动创建 Gitea 管理员账号 更新相关文档说明使用新脚本替代手动创建步骤 修改 .env.example 注释以反映脚本使用情况
29 lines
641 B
Bash
29 lines
641 B
Bash
# Copy this file to .env before running docker compose.
|
|
|
|
# Image versions
|
|
GITEA_IMAGE=gitea/gitea:1.24.7
|
|
POSTGRES_IMAGE=postgres:18
|
|
|
|
# Container runtime user
|
|
PUID=1000
|
|
PGID=1000
|
|
|
|
# Published ports on the Docker host
|
|
GITEA_HTTP_PORT=3000
|
|
|
|
# Public URL used by Gitea
|
|
# For local access you can keep localhost.
|
|
GITEA_DOMAIN=localhost
|
|
GITEA_ROOT_URL=http://localhost:3000/
|
|
|
|
# PostgreSQL settings
|
|
POSTGRES_DB=gitea
|
|
POSTGRES_USER=gitea
|
|
POSTGRES_PASSWORD=change_this_db_password
|
|
POSTGRES_SSL_MODE=disable
|
|
|
|
# First admin account used by init-admin.sh
|
|
GITEA_ADMIN_USERNAME=admin
|
|
GITEA_ADMIN_PASSWORD=ChangeMe!2026
|
|
GITEA_ADMIN_EMAIL=[email protected]
|