I managed to fix this with information from here:
Basically I added the following rule to ufw:
172.20.0.2 2222/tcp ALLOW FWD Anywhere # allow gitea-gitea-1 2222/tcp gitea_default
I managed to fix this with information from here:
Basically I added the following rule to ufw:
172.20.0.2 2222/tcp ALLOW FWD Anywhere # allow gitea-gitea-1 2222/tcp gitea_default