feat: forgejo startup script

I used this script to fetch and run forgejo. Incomplete, needs more config, and ideally some redundancy for storing all the data.
This commit is contained in:
Zachery Aaron Shores-Chmielewski 2026-01-18 08:25:16 +07:00
parent 8002a0a472
commit fbad975386

18
forgejo/start-forgejo.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/bash
WEB_UI_PORT=3001
SSH_PORT=2223
docker run -d \
--name forgejo \
-p ${WEB_UI_PORT}:3000 \
-p ${SSH_PORT}:22 \
-v ~/forgejo/data:/data \
-v /etc/timezone:/etc/timezone:ro \
-v /etc/localtime:/etc/localtime:ro \
--restart always \
codeberg.org/forgejo/forgejo:9
echo "Forgejo started on:"
echo " Web UI: http://zachery.lol:${WEB_UI_PORT}"
echo " ssh port: ${SSH_PORT}"