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.
# tags: version control, collaboration, code, hosting, lightweight, runner, actions, cicd, ci
# logo: svgs/forgejo.svg
# port: 3000
services:
forgejo:
image: codeberg.org/forgejo/forgejo:7
image: codeberg.org/forgejo/forgejo:8
environment:
- 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__ALLOW_LOCALNETWORKS=${FORGEJO__migrations__ALLOW_LOCALNETWORKS-false}
- FORGEJO__migrations__ALLOW_LOCALNETWORKS=${FORGEJO__migrations__ALLOW_LOCALNETWORKS:-false}
- USER_UID=1000
- USER_GID=1000
- RUNNER_SHARED_SECRET=${RUNNER_SHARED_SECRET-0000000000000000000000000000000000000000}
@@ -47,8 +48,8 @@ services:
timeout: 30s
retries: 10
environment:
DOCKER_TLS_CERTDIR: /certs
DOCKER_HOST: docker-in-docker
DOCKER_TLS_CERTDIR=/certs
DOCKER_HOST=docker-in-docker
volumes:
- forgejo-did-certs:/certs
@@ -102,7 +103,6 @@ services:
- forgejo-did-certs:/certs
- forgejo-timezone:/etc/timezone:ro
- forgejo-localtime:/etc/localtime:ro
restart: 'unless-stopped'
healthcheck:
test: ["CMD", "pgrep", "forgejo-runner"]
interval: 10s

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.
# tags: version control, collaboration, code, hosting, lightweight
# logo: svgs/forgejo.svg
# port: 3000
services:
forgejo:
image: codeberg.org/forgejo/forgejo:7
image: codeberg.org/forgejo/forgejo:8
environment:
- 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__ALLOW_LOCALNETWORKS=${FORGEJO__migrations__ALLOW_LOCALNETWORKS-false}
- USER_UID=1000