I used this script to fetch and run forgejo. Incomplete, needs more config, and ideally some redundancy for storing all the data.
18 lines
398 B
Bash
Executable file
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}"
|