fix forgejo

This commit is contained in:
peaklabs-dev
2024-10-08 14:32:21 +02:00
parent 7cb9cb0a44
commit 0cd2ca6e79
2 changed files with 11 additions and 10 deletions

View File

@@ -2,15 +2,16 @@
# slogan: Forgejo is a self-hosted lightweight software forge. Easy to install and low maintenance, it just does the job. # slogan: Forgejo is a self-hosted lightweight software forge. Easy to install and low maintenance, it just does the job.
# tags: version control, collaboration, code, hosting, lightweight, runner, actions, cicd, ci # tags: version control, collaboration, code, hosting, lightweight, runner, actions, cicd, ci
# logo: svgs/forgejo.svg # logo: svgs/forgejo.svg
# port: 3000
services: services:
forgejo: forgejo:
image: codeberg.org/forgejo/forgejo:7 image: codeberg.org/forgejo/forgejo:8
environment: environment:
- SERVICE_FQDN_FORGEJO_3000 - SERVICE_FQDN_FORGEJO_3000
- FORGEJO__server__ROOT_URL=${SERVICE_FQDN_FORGEJO} - FORGEJO__server__ROOT_URL=${SERVICE_FQDN_FORGEJO_3000}
- FORGEJO__migrations__ALLOWED_DOMAINS=${FORGEJO__migrations__ALLOWED_DOMAINS} - FORGEJO__migrations__ALLOWED_DOMAINS=${FORGEJO__migrations__ALLOWED_DOMAINS}
- FORGEJO__migrations__ALLOW_LOCALNETWORKS=${FORGEJO__migrations__ALLOW_LOCALNETWORKS-false} - FORGEJO__migrations__ALLOW_LOCALNETWORKS=${FORGEJO__migrations__ALLOW_LOCALNETWORKS:-false}
- USER_UID=1000 - USER_UID=1000
- USER_GID=1000 - USER_GID=1000
- RUNNER_SHARED_SECRET=${RUNNER_SHARED_SECRET-0000000000000000000000000000000000000000} - RUNNER_SHARED_SECRET=${RUNNER_SHARED_SECRET-0000000000000000000000000000000000000000}
@@ -47,8 +48,8 @@ services:
timeout: 30s timeout: 30s
retries: 10 retries: 10
environment: environment:
DOCKER_TLS_CERTDIR: /certs DOCKER_TLS_CERTDIR=/certs
DOCKER_HOST: docker-in-docker DOCKER_HOST=docker-in-docker
volumes: volumes:
- forgejo-did-certs:/certs - forgejo-did-certs:/certs
@@ -102,7 +103,6 @@ services:
- forgejo-did-certs:/certs - forgejo-did-certs:/certs
- forgejo-timezone:/etc/timezone:ro - forgejo-timezone:/etc/timezone:ro
- forgejo-localtime:/etc/localtime:ro - forgejo-localtime:/etc/localtime:ro
restart: 'unless-stopped'
healthcheck: healthcheck:
test: ["CMD", "pgrep", "forgejo-runner"] test: ["CMD", "pgrep", "forgejo-runner"]
interval: 10s interval: 10s
@@ -111,4 +111,4 @@ services:
command: >- command: >-
bash -c ' bash -c '
while : ; do test -w .runner && forgejo-runner --config config.yml daemon ; sleep 1 ; done while : ; do test -w .runner && forgejo-runner --config config.yml daemon ; sleep 1 ; done
' '

View File

@@ -2,13 +2,14 @@
# slogan: Forgejo is a self-hosted lightweight software forge. Easy to install and low maintenance, it just does the job. # slogan: Forgejo is a self-hosted lightweight software forge. Easy to install and low maintenance, it just does the job.
# tags: version control, collaboration, code, hosting, lightweight # tags: version control, collaboration, code, hosting, lightweight
# logo: svgs/forgejo.svg # logo: svgs/forgejo.svg
# port: 3000
services: services:
forgejo: forgejo:
image: codeberg.org/forgejo/forgejo:7 image: codeberg.org/forgejo/forgejo:8
environment: environment:
- SERVICE_FQDN_FORGEJO_3000 - SERVICE_FQDN_FORGEJO_3000
- FORGEJO__server__ROOT_URL=${SERVICE_FQDN_FORGEJO} - FORGEJO__server__ROOT_URL=${SERVICE_FQDN_FORGEJO_3000}
- FORGEJO__migrations__ALLOWED_DOMAINS=${FORGEJO__migrations__ALLOWED_DOMAINS} - FORGEJO__migrations__ALLOWED_DOMAINS=${FORGEJO__migrations__ALLOWED_DOMAINS}
- FORGEJO__migrations__ALLOW_LOCALNETWORKS=${FORGEJO__migrations__ALLOW_LOCALNETWORKS-false} - FORGEJO__migrations__ALLOW_LOCALNETWORKS=${FORGEJO__migrations__ALLOW_LOCALNETWORKS-false}
- USER_UID=1000 - USER_UID=1000
@@ -23,4 +24,4 @@ services:
test: ["CMD", "curl", "-f", "http://127.0.0.1:3000"] test: ["CMD", "curl", "-f", "http://127.0.0.1:3000"]
interval: 2s interval: 2s
timeout: 10s timeout: 10s
retries: 15 retries: 15