The 1.22 (non-rootless) image expects everything under /data (/data/gitea/conf/app.ini, /data/git/repositories, etc.). I'd configured the rootless paths (/var/lib/gitea + /etc/gitea), so the app.ini that gitea writes on first boot landed in the container's ephemeral fs instead of the host volume. Result: 'docker exec gitea gitea admin user create' could not find the config and bailed with 'Unable to load config file for a installed Gitea instance'. Also set GITEA__security__INSTALL_LOCK=true so the first boot bypasses the /install web wizard since every required field is already provided via GITEA__* env vars. Migration for an existing broken install: make down-gitea sudo rm -rf infra/gitea/gitea/data infra/gitea/gitea/config make up-gitea |
||
|---|---|---|
| infra | ||
| .gitignore | ||
| Makefile | ||
| network.sh | ||