diff --git a/forgejo/docker-compose.yml b/forgejo/docker-compose.yml new file mode 100644 index 0000000..00a7e2a --- /dev/null +++ b/forgejo/docker-compose.yml @@ -0,0 +1,18 @@ +services: + forgejo: + environment: + USER_UID: "${SZ_USER_UID}" + USER_GID: "${SZ_USER_GID}" + + FORGEJO__server__DOMAIN: "code.${ALT_ROOT_DOMAIN}" + FORGEJO__server__ROOT_URL: "https://code.${ALT_ROOT_DOMAIN}" + FORGEJO__server__SSH_DOMAIN: "code.${ALT_ROOT_DOMAIN}" + + labels: + # Websecure + traefik.http.routers.forgejo-more.rule: Host(`code.${ROOT_DOMAIN}`)${APP_ROUTE_OPTIONAL:-} + traefik.http.routers.forgejo-more.entrypoints: websecure + traefik.http.routers.forgejo-more.service: forgejo + # traefik.http.routers.forgejo-more.middlewares: authentik_sysmgr@file + traefik.http.routers.forgejo-more.tls: true + traefik.http.routers.forgejo-more.tls.certresolver: myresolver