

If port-forwarding is an issue, you can always use a free VPN to reach your self-hosted services. Or if you want to make them public, you can set up yourself a relay on AWS LightSail for less than 5$/month. Or if you want to save as much as possible you can use TailScale or CloudFlare’s Zero Trust network to self-host for free using their server as a relay.
Here’s my config for reference, which works for me:
name: forgejo services: forgejo: image: codeberg.org/forgejo/forgejo:12 environment: - USER_UID=1000 - USER_GID=1000 restart: always volumes: - ./data:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: #- 80:3000 - 2222:22 networks: - nginx networks: nginx: name: nginx external: true
If you can share your error message we might be able to better pinpoint the issue.
EDIT: I searched a bit and now I understand better what you are trying to do. I didn’t know about this “SSH shim” idea. This is not what I have done on my setup, sorry.