mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-13 06:15:14 +00:00
19 lines
515 B
Markdown
19 lines
515 B
Markdown
# gitea troubleshooting
|
|
|
|
Applies to `gitea/compose.yml`.
|
|
|
|
## Gitea cannot connect after changing `POSTGRES_PASSWORD`
|
|
|
|
Postgres sets the password only when it first initialises `db-data`. Changing
|
|
`POSTGRES_PASSWORD` later breaks Gitea's connection until the role is altered
|
|
to match:
|
|
|
|
```sh
|
|
docker compose exec db psql -U gitea -c "ALTER USER gitea PASSWORD '<new>';"
|
|
```
|
|
|
|
## A redeploy kills clones in progress
|
|
|
|
Gitea restarts and the clone dies with it. Avoid pushing to `gitea/`
|
|
while a large first mirror runs.
|