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:
parent
8002a0a472
commit
fbad975386
1 changed files with 18 additions and 0 deletions
18
forgejo/start-forgejo.sh
Executable file
18
forgejo/start-forgejo.sh
Executable 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}"
|
||||||
Loading…
Reference in a new issue