SHA256
添加使用docker部署的方法**用于快速测试** 路径于`deploy\compose`,目录下有相应部署指导文档 本次改动还将一些配置置为 example,在 git 中取消追踪**以免误操作将敏感信息提交** Reviewed-on: https://cpp.tongji.sh:2080/jkljkluiouio/tjhlp-gitea/pulls/2 Co-authored-by: oierxjn <[email protected]> Co-committed-by: oierxjn <[email protected]>
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]
|