mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-05-21 15:11:22 -05:00
[GH-ISSUE #260] Issue when starting container - Gitea Lookup Issue #2503
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mattboston on GitHub (Apr 8, 2026).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/260
I've had my Gitea-Mirror container running for a few months. yesterday I needed to migrated the host to a new network, so re-ip'd the host, brought docker and all my containers backup. Everything worked except Gitea-Mirror.
Here's the console logs:
And here's my portainer stack/docker compose(started with the basic compose example):
@arunavo4 commented on GitHub (Apr 9, 2026):
Hey @mattboston
From the logs, it looks like Gitea Mirror is starting up fine — the problem is it can't reach your Gitea instance anymore because the URL saved in the config still points to your old IP.
The easiest fix: just open the Gitea Mirror web UI, go to Settings, and update your Gitea URL to the new IP address. Once that's saved, everything should reconnect and work as before.
To make things more resilient for future network changes, a couple of tips:
Use a Docker service name instead of an IP — If your Gitea container is on the same Docker network, you can use something like
http://gitea:3000as the URL. Docker DNS handles the rest, so IP changes won't matter.Set
GITEA_URLin your docker-compose — AddingGITEA_URL=http://<your-gitea-address>:3000as an environment variable means the config gets applied on startup, making it easier to change in one place next time.Let me know if that sorts it out!
@mattboston commented on GitHub (Apr 9, 2026):
Previously the Gitea url was set with the gui. I added
GITEA_URLin my docker-compose and that fixed it. Thanks