zachery.lol/forgejo/start-forgejo.sh
Zachery Aaron Shores-Chmielewski fbad975386 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.
2026-01-18 08:25:16 +07:00

18 lines
398 B
Bash
Executable file

#!/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}"