coolify gitea
This commit is contained in:
@@ -64,43 +64,9 @@ services:
|
|||||||
- ${GITEA_DATA_PATH}:/data:Z
|
- ${GITEA_DATA_PATH}:/data:Z
|
||||||
networks:
|
networks:
|
||||||
- gitea
|
- gitea
|
||||||
- proxy
|
|
||||||
|
|
||||||
# Exponer SSH (contenedor y host mismo puerto)
|
|
||||||
ports:
|
ports:
|
||||||
- "${GITEA_SSH_PORT}:${GITEA_SSH_PORT}"
|
- "${GITEA_SSH_PORT}:${GITEA_SSH_PORT}"
|
||||||
|
|
||||||
labels:
|
|
||||||
traefik.enable: "true"
|
|
||||||
traefik.docker.network: "${TRAEFIK_DOCKER_NETWORK}"
|
|
||||||
|
|
||||||
traefik.http.services.gitea.loadbalancer.server.port: "${GITEA_HTTP_PORT}"
|
|
||||||
|
|
||||||
# Router principal (sin Authentik)
|
|
||||||
traefik.http.routers.gitea-main.rule: "Host(`${GITEA_DOMAIN}`)"
|
|
||||||
traefik.http.routers.gitea-main.entrypoints: "${TRAEFIK_ENTRYPOINT_SECURE}"
|
|
||||||
traefik.http.routers.gitea-main.tls: "true"
|
|
||||||
traefik.http.routers.gitea-main.tls.certresolver: "${TRAEFIK_CERTRESOLVER}"
|
|
||||||
traefik.http.routers.gitea-main.priority: "10"
|
|
||||||
|
|
||||||
# Router login + explore + perfil TheHomelessSherlock (con Authentik)
|
|
||||||
traefik.http.routers.gitea-login.rule: >-
|
|
||||||
Host(`${GITEA_DOMAIN}`) &&
|
|
||||||
(Path(`/user/login`) ||
|
|
||||||
PathPrefix(`/user/sign_up`) ||
|
|
||||||
PathPrefix(`/user/forgot_password`) ||
|
|
||||||
PathPrefix(`/user/two_factor`) ||
|
|
||||||
PathPrefix(`/login/oauth`) ||
|
|
||||||
PathPrefix(`/explore`) ||
|
|
||||||
PathPrefix(`/api`) ||
|
|
||||||
PathPrefix(`/api/swagger`) ||
|
|
||||||
PathRegexp(`^/TheHomelessSherlock/?$`))
|
|
||||||
traefik.http.routers.gitea-login.entrypoints: "${TRAEFIK_ENTRYPOINT_SECURE}"
|
|
||||||
traefik.http.routers.gitea-login.tls: "true"
|
|
||||||
traefik.http.routers.gitea-login.tls.certresolver: "${TRAEFIK_CERTRESOLVER}"
|
|
||||||
traefik.http.routers.gitea-login.middlewares: "${TRAEFIK_AUTH_MIDDLEWARE}"
|
|
||||||
traefik.http.routers.gitea-login.priority: "20"
|
|
||||||
|
|
||||||
gitea-runner:
|
gitea-runner:
|
||||||
image: ${GITEA_RUNNER_IMAGE}
|
image: ${GITEA_RUNNER_IMAGE}
|
||||||
container_name: gitea-act-runner
|
container_name: gitea-act-runner
|
||||||
@@ -121,6 +87,3 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
gitea:
|
gitea:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
proxy:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user