

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.
You are invited to join the CopyParty! This has a web UI accessible from the browser, also from mobile, files are stored directly on the filesystem (not encrypted or on a database) and you can mount it as a network drive on Windows and Linux. But it doesn’t let you sync files for offline use, at least not without the help of some auxiliary tools.
You won’t find anything simpler to install and configure than this.