feat: add forgejo

This commit is contained in:
naterfute 2025-03-31 16:28:43 -07:00
parent 2c45327e6d
commit c681bfca74
No known key found for this signature in database
GPG Key ID: 55C5D4AE11D63494
4 changed files with 102 additions and 0 deletions

View File

@ -0,0 +1,35 @@
version: "3.8"
services:
gitea:
image: codeberg.org/forgejo/forgejo:10
environment:
- USER_UID=${USER_UID}
- USER_GID=${USER_GID}
- FORGEJO__database__DB_TYPE=postgres
- FORGEJO__database__HOST=db:5432
- FORGEJO__database__NAME=forgejo
- FORGEJO__database__USER=forgejo
- FORGEJO__database__PASSWD=forgejo
restart: always
volumes:
- gitea_server:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
depends_on:
- db
db:
image: postgres:17
restart: always
environment:
- POSTGRES_USER=forgejo
- POSTGRES_PASSWORD=forgejo
- POSTGRES_DB=forgejo
volumes:
- forgejo_db:/var/lib/postgresql/data
volumes:
forgejo_db:
forgejo_server:

View File

@ -0,0 +1,40 @@
<svg viewBox="0 0 212 212" xmlns="http://www.w3.org/2000/svg">
<metadata
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<rdf:RDF>
<cc:Work rdf:about="https://codeberg.org/forgejo/meta/src/branch/readme/branding#logo">
<dc:title>Forgejo logo</dc:title>
<cc:creator rdf:resource="https://caesarschinas.com/"><cc:attributionName>Caesar Schinas</cc:attributionName></cc:creator>
<cc:license rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" />
</cc:Work>
</rdf:RDF>
</metadata>
<style type="text/css">
circle {
fill: none;
stroke: #000;
stroke-width: 15;
}
path {
fill: none;
stroke: #000;
stroke-width: 25;
}
.orange {
stroke:#ff6600;
}
.red {
stroke:#d40000;
}
</style>
<g transform="translate(6,6)">
<path d="M58 168 v-98 a50 50 0 0 1 50-50 h20" class="orange" />
<path d="M58 168 v-30 a50 50 0 0 1 50-50 h20" class="red" />
<circle cx="142" cy="20" r="18" class="orange" />
<circle cx="142" cy="88" r="18" class="red" />
<circle cx="58" cy="180" r="18" class="red" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1,11 @@
[variables]
main_domain = "${domain}"
[config]
env = ["USER_UID=1000", "USER_GID=1000"]
mounts = []
[[config.domains]]
serviceName = "forgejo"
port = 3_000
host = "${main_domain}"

View File

@ -179,6 +179,22 @@
"applications"
]
},
{
"id": "forgejo",
"name": "Forgejo",
"version": "10",
"description": "Forgejo is a self-hosted lightweight software forge. Easy to install and low maintenance, it just does the job",
"logo": "forgejo.svg",
"links": {
"github": "https://codeberg.org/forgejo/forgejo",
"website": "https://forgejo.org/",
"docs": "https://forgejo.org/docs/latest/"
},
"tags": [
"self-hosted",
"storage"
]
},
{
"id": "ghost",
"name": "Ghost",