# ── Container user ─────────────────────────────────────────────── # Match these to the UID/GID that owns the ./gitea host directory. # On Linux, run `id -u` and `id -g` to find yours. USER_UID=1000 USER_GID=1000 # ── PostgreSQL database ────────────────────────────────────────── POSTGRES_USER=gitea POSTGRES_PASSWORD=change_me_to_a_strong_password POSTGRES_DB=gitea # ── Host port mappings ─────────────────────────────────────────── # host:container — change the host side if these ports are taken. GITEA_HTTP_HOST_PORT=3000 GITEA_SSH_HOST_PORT=222 # ── Server settings ────────────────────────────────────────────── # For a purely local setup, localhost is fine. GITEA_DOMAIN=localhost GITEA_ROOT_URL=http://localhost:3000/ # ── Security secrets ───────────────────────────────────────────── # Generate each of these once and keep them stable. Do NOT change # SECRET_KEY after installation or encrypted data becomes unreadable. # docker run -it --rm docker.gitea.com/gitea:1 gitea generate secret SECRET_KEY # docker run -it --rm docker.gitea.com/gitea:1 gitea generate secret INTERNAL_TOKEN GITEA_SECRET_KEY= GITEA_INTERNAL_TOKEN=