Compare commits

..
95 Commits
Author SHA1 Message Date
fauno 2c192e9f13 Merge branch 'renovate/codeberg.org-forgejo-forgejo-17.x' of https://git.coopcloud.tech/coop-cloud/forgejo into produccion 2026-11-23 17:40:34 -03:00
renovate-bot 09001abacd chore(deps): update codeberg.org/forgejo/forgejo docker tag to v17.0.2 2026-11-18 19:06:49 +00:00
fauno bb47746e47 Merge branch 'access-log' into produccion 2026-11-10 16:53:02 -03:00
fauno 9b3afbecf4 feat: access log file 2026-11-10 16:52:24 -03:00
fauno 3129e59d06 Merge pull request 'corrected command for creating first user' (#62) from docs-patch-first-user into main
Reviewed-on: #62
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-11-08 14:42:14 +00:00
val 1b7fda4d49 corrected command for creating first user 2026-11-06 16:41:25 +00:00
fauno a6d7f630f9 chore: publish 6.0.2+17.0.1-rootless release 2026-10-28 10:47:04 -03:00
fauno 6f82caf9e2 fix: forgot to update the app.ini version 2026-10-28 10:44:18 -03:00
fauno d20178aa74 chore: publish 6.0.1+17.0.1-rootless release 2026-10-27 11:09:07 -03:00
fauno 4f54fb3763 Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v17.0.1' (#61) from renovate/codeberg.org-forgejo-forgejo-17.x into main
Reviewed-on: #61
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-10-27 14:08:32 +00:00
fauno 6381c9b624 Merge remote-tracking branch 'origin/renovate/codeberg.org-forgejo-forgejo-17.x' into produccion 2026-10-27 10:20:35 -03:00
fauno 784987a7d3 Merge branch 'main' into produccion 2026-10-27 10:20:12 -03:00
renovate-bot bd6a4bc726 chore(deps): update codeberg.org/forgejo/forgejo docker tag to v17.0.1 2026-10-27 13:06:46 +00:00
fauno 9619316b4b Merge pull request 'chore(deps): update postgres docker tag to v15.19' (#3) from renovate/postgres-15.x into main
Reviewed-on: #3
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-10-27 12:45:36 +00:00
fauno ecdd4be100 Merge pull request 'chore(deps): update mariadb docker tag to v10.11.19' (#2) from renovate/mariadb-10.x into main
Reviewed-on: #2
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-10-27 12:45:17 +00:00
fauno d0e67186e7 chore: publish 6.0.0+17.0.0-rootless release 2026-10-27 09:37:05 -03:00
fauno 4aef489937 Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v17' (#59) from renovate/codeberg.org-forgejo-forgejo-17.x into main
Reviewed-on: #59
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-10-27 12:32:58 +00:00
fauno 2af87760f0 fix: durations are required now! 2026-10-16 09:45:24 -03:00
fauno a6e333dc07 fix: produccion 2026-10-16 09:39:21 -03:00
fauno 724fb33097 Merge branch 'renovate/codeberg.org-forgejo-forgejo-17.x' of https://git.coopcloud.tech/coop-cloud/forgejo into produccion 2026-10-16 09:21:30 -03:00
renovate-bot 3e1d5885ae chore(deps): update codeberg.org/forgejo/forgejo docker tag to v17 2026-10-15 17:07:26 +00:00
fauno b699281073 chore: publish 5.6.4+15.0.10-rootless release 2026-10-13 09:43:19 -03:00
fauno 728a9f6abd Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.10' (#56) from renovate/codeberg.org-forgejo-forgejo-15.x into main
Reviewed-on: #56
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-10-13 12:42:51 +00:00
fauno 5a0f726bad Merge branch 'renovate/codeberg.org-forgejo-forgejo-15.x' of https://git.coopcloud.tech/coop-cloud/forgejo into produccion 2026-10-13 09:40:13 -03:00
renovate-bot dc61fe5fa0 chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.10 2026-10-12 16:07:06 +00:00
fauno 7a08e33adb Merge branch 'access-logs' into produccion 2026-09-25 11:08:20 -03:00
fauno 84702e4819 feat: access logs 2026-09-25 11:07:53 -03:00
fauno c6d152bff7 chore: publish 5.6.3+15.0.9-rootless release 2026-09-23 12:59:32 -03:00
fauno f5b581a487 Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.9' (#51) from renovate/codeberg.org-forgejo-forgejo-15.x into main
Reviewed-on: #51
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-09-23 15:58:34 +00:00
renovate-bot 010c852dc2 chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.9 2026-09-17 16:07:17 +00:00
fauno 91c1f571ce Merge branch 'main' into produccion 2026-09-14 11:19:21 -03:00
fauno 92cd920c08 chore: publish 5.6.2+15.0.8-rootless release 2026-09-11 05:23:19 -03:00
fauno 9497e42181 Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.8' (#49) from renovate/codeberg.org-forgejo-forgejo-15.x into main
Reviewed-on: #49
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-09-11 08:22:26 +00:00
renovate-bot f6f204c974 chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.8 2026-09-10 13:07:28 +00:00
fauno a74d85f4b1 Merge pull request 'chore: p4u1 stepping down as maintainer' (#47) from renove-p4u1-maintainer into main
Reviewed-on: #47
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-08-25 16:36:31 +00:00
p4u1 2283a6046b Update README.md 2026-08-25 15:28:52 +00:00
renovate-bot 0be6864e52 chore(deps): update mariadb docker tag to v10.11.19 2026-08-24 21:07:28 +00:00
fauno 41f5172a42 chore: publish 5.6.1+15.0.7-rootless release 2026-08-20 13:00:31 -03:00
fauno d6e6a8d404 Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.7' (#46) from renovate/codeberg.org-forgejo-forgejo-15.x into main
Reviewed-on: #46
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-08-20 15:58:18 +00:00
renovate-bot 3761b0ab5c chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.7 2026-08-20 09:07:48 +00:00
renovate-bot 811555fee9 chore(deps): update postgres docker tag to v15.19 2026-08-13 21:09:16 +00:00
fauno 12d374997c Merge branch 'main' into produccion 2026-07-30 19:43:24 -03:00
fauno f3fa092011 chore: publish 5.6.0+15.0.6-rootless release 2026-07-30 19:25:59 -03:00
fauno fe308a35bb Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.6' (#43) from renovate/codeberg.org-forgejo-forgejo-15.x into main
Reviewed-on: #43
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-07-30 22:25:30 +00:00
renovate-bot 1b16538e65 chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.6 2026-07-30 21:06:43 +00:00
fauno e49e3034f1 Merge pull request 'feat: sign commits' (#29) from signing into main
Reviewed-on: #29
Reviewed-by: p4u1 <133+p4u1@noreply.git.coopcloud.tech>
2026-07-23 11:13:42 +00:00
fauno 826b116c4b Merge branch 'main' into produccion 2026-07-22 16:42:14 -03:00
fauno 690538efc8 chore: publish 5.5.0+15.0.5-rootless release 2026-07-21 11:16:15 -03:00
fauno 472f53006c Merge branch 'main' of https://git.coopcloud.tech/coop-cloud/forgejo into signing 2026-07-21 11:12:51 -03:00
fauno 505e6ab30a Merge pull request 'feat: prometheus metrics' (#35) from metrics into main
Reviewed-on: #35
Reviewed-by: p4u1 <133+p4u1@noreply.git.coopcloud.tech>
2026-07-21 14:11:46 +00:00
fauno b9f6a463ee Merge pull request 'chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.5' (#39) from renovate/codeberg.org-forgejo-forgejo-15.x into main
Reviewed-on: #39
Reviewed-by: fauno <fauno@sutty.coop.ar>
2026-07-21 14:09:50 +00:00
renovate-bot e047ec2bc3 chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.5 2026-07-21 12:12:24 +00:00
fauno 18f6d14c3d Merge branch 'ssh-optional' into produccion 2026-06-29 16:12:28 -03:00
fauno 9ac1a5fcd9 fix: disable ssh 2026-06-29 16:11:43 -03:00
fauno 6a10d71402 Merge branch 'ssh-optional' into produccion 2026-06-29 14:33:41 -03:00
fauno 7cfea87d99 feat: ssh server is optional 2026-06-29 14:33:04 -03:00
fauno d39848fcd8 fix: variable not in use 2026-06-29 14:32:46 -03:00
fauno 3577535b62 fix: the port number is hardcoded on traefik 2026-06-29 14:32:09 -03:00
fauno a0eeb57427 doc: forgejo 2026-06-29 14:31:20 -03:00
fauno c884826b0a Merge branch 'metrics' into produccion 2026-06-16 22:58:35 -03:00
fauno 11fc77d930 feat: expose metrics coop-cloud/monitoring-ng#20 2026-06-16 22:57:59 -03:00
fauno 8cec92c042 Merge branch 'metrics' into produccion 2026-06-12 13:23:06 -03:00
fauno 108c3cb1aa fixup! feat: prometheus metrics 2026-06-12 13:23:00 -03:00
fauno 7f44cab6c9 Merge branch 'renovate/codeberg.org-forgejo-forgejo-15.x' into produccion 2026-06-12 13:13:31 -03:00
fauno 461784c151 Merge branch 'metrics' into produccion 2026-06-12 13:04:01 -03:00
fauno 37a0fd3608 feat: expose metrics token 2026-06-12 13:03:41 -03:00
fauno c216bba0ab Merge branch 'metrics' into produccion 2026-06-12 13:01:08 -03:00
fauno 5e17977c4c feat: prometheus metrics 2026-06-12 13:00:32 -03:00
renovate-bot dbae7db490 chore(deps): update codeberg.org/forgejo/forgejo docker tag to v15.0.3 2026-06-10 07:06:37 +00:00
fauno 44c276220d fix: symlink signing keys 2026-06-08 12:56:39 -03:00
fauno 66ebc75a59 Merge branch 'main' into produccion 2026-06-05 10:55:15 -03:00
fauno a46b4c3fdb chore: publish 5.4.0+15.0.2-rootless release 2026-06-05 10:54:39 -03:00
fauno f1237cbed8 Merge branch 'main' of https://git.coopcloud.tech/coop-cloud/forgejo into signing 2026-06-05 10:51:55 -03:00
fauno 96b82f2cb1 Merge pull request 'feat: configurable session provider' (#31) from session into main
Reviewed-on: #31
Reviewed-by: p4u1 <p4u1@noreply.git.coopcloud.tech>
2026-06-05 13:50:59 +00:00
fauno f9c47541ce Merge branch 'main' into session 2026-06-05 10:50:40 -03:00
fauno 850a08f42f Merge pull request 'feat: caching settings' (#32) from caching into main
Reviewed-on: #32
Reviewed-by: p4u1 <p4u1@noreply.git.coopcloud.tech>
2026-06-05 13:49:35 +00:00
fauno 73dc9c6fa0 Merge pull request 'fix: stop the running container first coop-cloud/gitea#53' (#33) from shutdown into main
Reviewed-on: #33
Reviewed-by: p4u1 <p4u1@noreply.git.coopcloud.tech>
2026-06-05 13:49:09 +00:00
fauno c734a15897 Merge branch 'session' into produccion 2026-05-20 10:29:30 -03:00
fauno aa0de92e5b fix: change default session provider to db
this should help with folks having to log in again after restarts
2026-05-20 10:16:33 -03:00
fauno c8b1ccf5ba Merge branch 'shutdown' into produccion 2026-05-19 10:44:04 -03:00
fauno 9a741faa0c fix: prevent anubis from redirecting the health check 2026-05-18 10:03:19 -03:00
fauno bd330ed0b5 Merge branch 'signing' into produccion 2026-05-16 20:11:06 -03:00
fauno 000de73bb3 fix: allow key rotation 2026-05-16 13:10:16 -03:00
fauno de61429a3d Merge branch 'caching' into produccion 2026-05-15 17:01:10 -03:00
fauno 852903c166 feat: caching settings 2026-05-15 17:00:29 -03:00
fauno 5337637cb2 Merge branch 'session' into produccion 2026-05-15 16:39:55 -03:00
fauno b734c56e24 feat: configurable session provider 2026-05-15 16:39:04 -03:00
fauno b0f52307a5 feat: sign commits 2026-05-14 10:09:39 -03:00
fauno 40dc068a23 Merge branch 'main' into produccion 2026-05-14 10:03:01 -03:00
fauno cbc43eddbc Merge branch 'signing' into produccion 2026-05-13 14:11:45 -03:00
fauno b926ad8111 feat: sign commits 2026-05-13 14:10:35 -03:00
fauno d5a826c87d Merge branch 's3' into gallinero 2026-05-06 14:45:29 -03:00
fauno 9daa7de95a Merge branch 's3' into gallinero 2026-05-06 14:43:18 -03:00
fauno cd6b9a3ca8 Merge branch 's3' into gallinero 2026-05-06 14:39:23 -03:00
fauno 6d62a06408 Merge branch 'renovate/codeberg.org-forgejo-forgejo-15.x' into gallinero 2026-05-06 14:39:19 -03:00
13 changed files with 150 additions and 27 deletions
+24 -3
View File
@@ -38,6 +38,10 @@ GITEA_ENABLE_PUSH_CREATE_USER=false
GITEA_ENABLE_PUSH_CREATE_ORG=false
GITEA_LFS_START_SERVER=false
GITEA_MAX_CREATION_LIMIT=-1
GITEA_SESSION_PROVIDER=db
GITEA_CACHE_ADAPTER=memory
GITEA_CACHE_HOST=
GITEA_CACHE_ITEM_TTL=16h
GITEA_REPO_UPLOAD_ENABLED=true
GITEA_REPO_UPLOAD_ALLOWED_TYPES=*/*
@@ -47,8 +51,8 @@ GITEA_REPO_UPLOAD_MAX_FILES=5
GITEA_MAILER_FROM=noreply@example.com
GITEA_MAILER_USER=noreply@example.com
GITEA_SSH_PORT=2222
GITEA_SSH_ENABLED=1
# SSH Support
COMPOSE_FILE="$COMPOSE_FILE:compose.ssh.yml"
SECRET_INTERNAL_TOKEN_VERSION=v1 # length=105
SECRET_DB_PASSWORD_VERSION=v1
@@ -68,6 +72,13 @@ GITEA_STORAGE_TYPE=local
# MINIO_CHECKSUM_ALGORITHM=default
# COMPOSE_FILE="$COMPOSE_FILE:compose.s3.yml"
# Instance Commit Signing
# https://forgejo.org/docs/latest/admin/advanced/signing/
# COMPOSE_FILE="$COMPOSE_FILE:compose.signing.yml"
# GITEA_SIGNING_ENABLED=1
# SECRET_SIGNING_PUBLIC_KEY_VERSION=v1
# SECRET_SIGNING_PRIVATE_KEY_VERSION=v1
# SMTP Mailer
# COMPOSE_FILE="$COMPOSE_FILE:compose.smtp.yml"
# GITEA_SMTP_MAILER_ENABLED=1
@@ -92,4 +103,14 @@ GITEA_STORAGE_TYPE=local
# Indexer (for issue search)
# GITEA_REPO_INDEXER_ENABLED=false
# GITEA_ISSUE_INDEXER_TYPE=db
# GITEA_STARTUP_TIMEOUT=-1
# GITEA_STARTUP_TIMEOUT=0s
# Prometheus metrics
# FORGEJO_METRICS_ENABLED=false
# FORGEJO_METRICS_ENABLED_ISSUE_BY_LABEL=false
# FORGEJO_METRICS_ENABLED_ISSUE_BY_REPOSITORY=false
# SECRET_FORGEJO_METRICS_TOKEN_VERSION=v1
# COMPOSE_FILE="$COMPOSE_FILE:compose.metrics.yml"
# Enable access logs. See Access logs on Traefik.
#ACCESS_LOGS=true
+18 -7
View File
@@ -3,7 +3,7 @@
[![Build Status](https://build.coopcloud.tech/api/badges/coop-cloud/forgejo/status.svg)](https://build.coopcloud.tech/coop-cloud/forgejo)
<!-- metadata -->
* **Maintainer**: [@p4u1](https://git.coopcloud.tech/p4u1), [@fauno](https://git.coopcloud.tech/fauno)
* **Maintainer**: [@fauno](https://git.coopcloud.tech/fauno)
* **Category**: Development
* **Status**: 5
* **Image**: [`forgejo/forgejo`](https://codeberg.org/forgejo/-/packages/container/forgejo/13-rootless), 4, upstream
@@ -29,7 +29,7 @@
Run
```bash
abra app run YOURAPPNAME app forgejo -c /etc/gitea/app.ini admin user create --username USERNAME --admin --random-password --email EMAIL
abra app run YOURAPPNAME app -- forgejo --config /var/lib/gitea/custom/conf/app.ini admin user create --username USERNAME --admin --random-password --email EMAIL
```
See the [Gitea command-line documentation](https://docs.gitea.io/en-us/command-line/) for more options. Make sure not to forget the `-c /etc/gitea/app.ini`.
@@ -52,17 +52,28 @@ abra app deploy YOURTRAEFIKAPP
```
You might need to wait a bit. To check if it worked, you can run
```
telnet my.gitea.example.com 2222
telnet my.forgejo.example.com 2222
```
Once you have added a public SSH key, you can check that you can connect to your gitea server with
Once you have added a public SSH key, you can check that you can connect to your Forgejo server with
```
ssh -T -p 2222 git@my.gitea.example.com
ssh -T -p 2222 git@my.forgejo.example.com
```
Note that gitea should be configured to listen to port 2222, i.e. `GITEA_SSH_PORT=2222` in the gitea config.
## Protect Forgejo from scrapers with Anubis
Uncomment the Anubis compose file from the `.env` file and re-deploy the
app. Don't forget to actually [enable Anubis on the Traefik app
too](https://recipes.coopcloud.tech/traefik)!
## [Instance Commit Signing](https://forgejo.org/docs/latest/admin/advanced/signing/)
To allow Forgejo to sign commits, uncomment the corresponding
configuration block, and then generate and insert the SSH keys:
```sh
abra app config git.example.coop
ssh-keygen -t ed25519
app app secret insert git.example.coop signing_public_key v1 -f ~/.ssh/id_ed25519.pub
app app secret insert git.example.coop signing_private_key v1 -f ~/.ssh/id_ed25519
app app deploy git.example.coop
```
+2 -2
View File
@@ -1,5 +1,5 @@
export APP_INI_VERSION=v25
export DOCKER_SETUP_SH_VERSION=v1
export APP_INI_VERSION=v34
export DOCKER_SETUP_SH_VERSION=v3
export PG_BACKUP_VERSION=v1
abra_backup_app() {
+40 -5
View File
@@ -62,22 +62,35 @@ ALLOWED_TYPES = {{ env "GITEA_REPO_UPLOAD_ALLOWED_TYPES" }}
FILE_MAX_SIZE = {{ env "GITEA_REPO_UPLOAD_MAX_SIZE" }}
MAX_FILES = {{ env "GITEA_REPO_UPLOAD_MAX_FILES" }}
{{ if eq (env "GITEA_SIGNING_ENABLED") "1" }}
[repository.signing]
FORMAT = ssh
SIGNING_KEY = /var/lib/gitea/signing_key.pub
SIGNING_NAME = {{ env "GITEA_APP_NAME" }}
SIGNING_EMAIL = {{ env "GITEA_MAILER_FROM" }}
INITIAL_COMMIT = always
WIKI = always
CRUD_ACTIONS = always
MERGES = always
{{ end }}
[ui]
SHOW_USER_EMAIL = {{ env "GITEA_SHOW_USER_EMAIL" }}
[indexer]
REPO_INDEXER_ENABLED = {{ or (env "GITEA_REPO_INDEXER_ENABLED") "false" }}
ISSUE_INDEXER_TYPE= {{ or (env "GITEA_ISSUE_INDEXER_TYPE") "db" }}
STARTUP_TIMEOUT = {{ or (env "GITEA_STARTUP_TIMEOUT") "-1" }}
STARTUP_TIMEOUT = {{ or (env "GITEA_STARTUP_TIMEOUT") "0s" }}
[server]
DOMAIN = {{ env "GITEA_DOMAIN" }}
LANDING_PAGE = {{ env "GITEA_LANDING_PAGE" }}
ROOT_URL = https://%(DOMAIN)s/
SSH_DOMAIN = {{ env "GITEA_DOMAIN" }}
SSH_LISTEN_PORT = {{ env "GITEA_SSH_PORT" }}
SSH_PORT = {{ env "GITEA_SSH_PORT" }}
START_SSH_SERVER = true
SSH_LISTEN_PORT = 2222
SSH_PORT = 2222
START_SSH_SERVER = {{ env "GITEA_SSH_ENABLED" }}
DISABLE_SSH = {{ if eq (env "GITEA_SSH_ENABLED") "true" }}false{{ else }}true{{ end }}
LFS_START_SERVER = {{ env "GITEA_LFS_START_SERVER" }}
LFS_JWT_SECRET = {{ secret "lfs_jwt_secret" }}
@@ -123,6 +136,28 @@ IS_INPUT_FILE = false
[log]
MODE=console
LEVEL=WARN
LEVEL=DEBUG
STACKTRACE_LEVEL=None
ENABLE_XORM_LOG=false
LOGGER_ACCESS_MODE = access-file
[log.access-file]
MODE=file
LEVEL=Debug
FILE_NAME=access.log
[session]
PROVIDER = {{ env "GITEA_SESSION_PROVIDER" }}
[cache]
ADAPTER = {{ env "GITEA_CACHE_ADAPTER" }}
HOST = {{ env "GITEA_CACHE_HOST" }}
ITEM_TTL = {{ env "GITEA_CACHE_ITEM_TTL" }}
{{ if eq (env "FORGEJO_METRICS_ENABLED") "true" }}
[metrics]
ENABLED = {{ env "FORGEJO_METRICS_ENABLED" }}
ENABLED_ISSUE_BY_LABEL = {{ env "FORGEJO_METRICS_ENABLED_ISSUE_BY_LABEL" }}
ENABLED_ISSUE_BY_REPOSITORY = {{ env "FORGEJO_METRICS_ENABLED_ISSUE_BY_REPOSITORY" }}
TOKEN = {{ secret "metrics_token" }}
{{ end }}
+1 -1
View File
@@ -10,7 +10,7 @@ services:
secrets:
- db_password
db:
image: "mariadb:10.11.2"
image: "mariadb:10.11.19"
deploy:
labels:
backupbot.backup.pre-hook: 'mysqldump --single-transaction -u root -p"$$(cat /run/secrets/db_root_password)" gitea > /var/lib/mysql/backup.sql'
+16
View File
@@ -0,0 +1,16 @@
---
version: "3.8"
services:
app:
secrets:
- metrics_token
deploy:
labels:
- "prometheus.io/scrape=true"
- "prometheus.io/port=3000"
- "prometheus.io/path=/metrics"
- "prometheus.io/auth=bearer"
secrets:
metrics_token:
name: ${STACK_NAME}_metrics_token_${SECRET_FORGEJO_METRICS_TOKEN_VERSION}
external: true
+1 -1
View File
@@ -10,7 +10,7 @@ services:
secrets:
- db_password
db:
image: postgres:15.13
image: postgres:15.19
deploy:
labels:
backupbot.backup.pre-hook: "/pg_backup.sh backup"
+14
View File
@@ -0,0 +1,14 @@
version: '3.8'
services:
app:
secrets:
- signing_public_key
- signing_private_key
secrets:
signing_public_key:
name: ${STACK_NAME}_signing_public_key_${SECRET_SIGNING_PUBLIC_KEY_VERSION}
external: true
signing_private_key:
name: ${STACK_NAME}_signing_private_key_${SECRET_SIGNING_PRIVATE_KEY_VERSION}
external: true
+11
View File
@@ -0,0 +1,11 @@
---
version: "3.8"
services:
app:
environment:
- GITEA_SSH_ENABLED=true
deploy:
labels:
- "traefik.tcp.routers.${STACK_NAME}-ssh.rule=HostSNI(`*`)"
- "traefik.tcp.routers.${STACK_NAME}-ssh.entrypoints=gitea-ssh"
- "traefik.tcp.services.${STACK_NAME}-ssh.loadbalancer.server.port=${GITEA_SSH_PORT}"
+8 -7
View File
@@ -3,7 +3,8 @@ version: "3.8"
services:
app:
image: codeberg.org/forgejo/forgejo:15.0.2-rootless
#image: git.sutty.abyaya.la/containers/forgejo:15.0.8-rootless
image: codeberg.org/forgejo/forgejo:17.0.2-rootless
configs:
- source: app_ini
target: /var/lib/gitea/custom/conf/app.ini
@@ -15,6 +16,7 @@ services:
- jwt_secret
- secret_key
- lfs_jwt_secret
entrypoint: "/usr/bin/dumb-init -- /usr/local/bin/docker-entrypoint.sh"
environment:
- GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION
- GITEA_ALLOW_ONLY_INTERNAL_REGISTRATION
@@ -26,7 +28,7 @@ services:
- GITEA_ENABLE_OPENID_SIGNIN
- GITEA_ENABLE_OPENID_SIGNUP
- GITEA_SMTP_MAILER_ENABLED
- GITEA_SSH_PORT
- GITEA_SSH_ENABLED=false
- GITEA_DISABLE_GRAVATAR
- GITEA_ENABLE_FEDERATED_AVATAR
- GITEA_REGISTER_EMAIL_CONFIRM
@@ -65,7 +67,7 @@ services:
- proxy
- internal
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/healthz"]
test: ["CMD", "curl", "--user-agent=healthcheck", "-f", "http://localhost:3000/api/healthz"]
interval: 30s
timeout: 10s
retries: 10
@@ -81,16 +83,15 @@ services:
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=3000"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.tcp.routers.${STACK_NAME}-ssh.rule=HostSNI(`*`)"
- "traefik.tcp.routers.${STACK_NAME}-ssh.entrypoints=gitea-ssh"
- "traefik.tcp.services.${STACK_NAME}-ssh.loadbalancer.server.port=${GITEA_SSH_PORT}"
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}_cors"
- "traefik.http.routers.${STACK_NAME}.observability.accesslogs=${ACCESS_LOGS:-false}"
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolallowmethods=GET,OPTIONS,PUT"
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolallowheaders=content-type,authorization"
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolalloworiginlist=https://${GITEA_CORS_ALLOW_DOMAIN}"
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolmaxage=100"
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.addvaryheader=true"
- coop-cloud.${STACK_NAME}.version=5.3.1+15.0.2-rootless
- "traefik.http.middlewares.${STACK_NAME}-buffering.buffering.maxRequestBodyBytes=0"
- coop-cloud.${STACK_NAME}.version=6.0.2+17.0.1-rootless
networks:
+9 -1
View File
@@ -6,10 +6,18 @@
# Prepare git folder
mkdir -p ${HOME} && chmod 0700 ${HOME}
if [ ! -w ${HOME} ]; then echo "${HOME} is not writable"; exit 1; fi
# Prepare custom folder
mkdir -p ${GITEA_CUSTOM} && chmod 0500 ${GITEA_CUSTOM}
# Prepare temp folder
mkdir -p ${GITEA_TEMP} && chmod 0700 ${GITEA_TEMP}
if [ ! -w ${GITEA_TEMP} ]; then echo "${GITEA_TEMP} is not writable"; exit 1; fi
if [ -e /run/secrets/signing_public_key ] ; then
if [ ! -e /var/lib/gitea/signing_key.pub ]; then
ln -s /run/secrets/signing_public_key /var/lib/gitea/signing_key.pub
ln -s /run/secrets/signing_private_key /var/lib/gitea/signing_key
fi
chmod 600 /var/lib/gitea/signing_key*
fi
+1
View File
@@ -0,0 +1 @@
New enviromental variables have been added! Please update your .env before deploying.
+5
View File
@@ -0,0 +1,5 @@
Since PR 10273 was merged, durations need a unit, otherwise Forgejo
would refuse to start. Check your GITEA_STARTUP_TIMEOUT value and make
sure it ends with s for seconds.
https://codeberg.org/forgejo/forgejo/pulls/10273