Skip to content

Instantly share code, notes, and snippets.

@cybardev
Created July 22, 2025 22:20
Show Gist options
  • Save cybardev/3d10c73594387e5b5f1a291baef634ec to your computer and use it in GitHub Desktop.
Save cybardev/3d10c73594387e5b5f1a291baef634ec to your computer and use it in GitHub Desktop.
forgejo-config
networks:
forgejo:
external: false
services:
server:
container_name: forgejo
image: codeberg.org/forgejo/forgejo:11
restart: always
networks:
- forgejo
environment:
- USER_UID=501
- USER_GID=20
volumes:
- ./data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3443:3000"
- "222:22"
@cybardev
Copy link
Author

On Linux, change UID and GID accordingly (run the id command to check).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment