From 02a54c564949a8c42f9e8596bdcc38505972bf70 Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Wed, 18 Nov 2026 20:16:29 -0500 Subject: [PATCH] chore(gitea): reconcile compose baseline and add app.yaml manifest - Restore gitea/README.md from HEAD - Reconcile gitea/docker-compose.yml with contained ./data mount and env-var injection - Author schemaVersion 1.0 gitea/app.yaml passing core_manifest validation --- gitea/app.yaml | 23 +++++++++++++++++++++++ gitea/docker-compose.yml | 18 +++++++++++------- 2 files changed, 34 insertions(+), 7 deletions(-) create mode 100644 gitea/app.yaml diff --git a/gitea/app.yaml b/gitea/app.yaml new file mode 100644 index 0000000..3716278 --- /dev/null +++ b/gitea/app.yaml @@ -0,0 +1,23 @@ +schemaVersion: "1.0" +name: "gitea" +aliases: + - "git" +description: "Self-Hosted Git Service & Code Repository" +visible: true +auth: false +networks: + - proxy-net +env: + SSH_PORT: "2223" +deployment: + strategy: "compose" + branch: "main" + actions: + - git_pull + - compose_up +homepage: + title: "Gitea" + group: "Development & AI" + icon: "gitea.png" + container: "gitea" + weight: 10 diff --git a/gitea/docker-compose.yml b/gitea/docker-compose.yml index 81cf1ac..48371fc 100644 --- a/gitea/docker-compose.yml +++ b/gitea/docker-compose.yml @@ -6,29 +6,33 @@ services: environment: - USER_UID=${USER_UID:-1000} - USER_GID=${USER_GID:-1000} + - TZ=${TZ:-UTC} # Gitea configuration via environment variables - GITEA__database__DB_TYPE=${DB_TYPE:-sqlite3} - GITEA__server__DOMAIN=${SERVICE_DOMAIN} - GITEA__server__SSH_DOMAIN=${SSH_DOMAIN:-${SERVICE_DOMAIN}} + - GITEA__server__SSH_PORT=${SSH_PORT:-2223} + - GITEA__server__SSH_LISTEN_PORT=22 - GITEA__server__ROOT_URL=https://${SERVICE_DOMAIN} + - GITEA__webhook__ALLOWED_HOST_LIST=${GITEA_WEBHOOK_ALLOWED_HOST_LIST:-private,loopback,external} + ports: + - "${SSH_PORT:-2223}:22" volumes: - - ${DATA_PATH:-./data}:/data - - /etc/timezone:/etc/timezone:ro - - /etc/localtime:/etc/localtime:ro + - ./data:/data networks: - proxy-net labels: - "traefik.enable=true" # WebSecure Router - "traefik.http.routers.${CONTAINER_NAME:-gitea}.rule=Host(`${SERVICE_DOMAIN}`)" - - "traefik.http.routers.${CONTAINER_NAME:-gitea}.entrypoints=websecure" + - "traefik.http.routers.${CONTAINER_NAME:-gitea}.entrypoints=${HTTPS_ENTRYPOINT:-websecure}" - "traefik.http.routers.${CONTAINER_NAME:-gitea}.tls=true" - - "traefik.http.routers.${CONTAINER_NAME:-gitea}.middlewares=${AUTH_MIDDLEWARE}" + - "traefik.http.routers.${CONTAINER_NAME:-gitea}.tls.certresolver=${CERT_RESOLVER:-myresolver}" - "traefik.http.routers.${CONTAINER_NAME:-gitea}.service=${CONTAINER_NAME:-gitea}-svc" # HTTP to HTTPS Redirect Router - "traefik.http.routers.${CONTAINER_NAME:-gitea}-red.rule=Host(`${SERVICE_DOMAIN}`)" - - "traefik.http.routers.${CONTAINER_NAME:-gitea}-red.entrypoints=web" - - "traefik.http.routers.${CONTAINER_NAME:-gitea}-red.middlewares=${HTTPS_REDIRECT_MIDDLEWARE}" + - "traefik.http.routers.${CONTAINER_NAME:-gitea}-red.entrypoints=${HTTP_ENTRYPOINT:-web}" + - "traefik.http.routers.${CONTAINER_NAME:-gitea}-red.middlewares=${HTTPS_REDIRECT_MIDDLEWARE:-https-redirect@docker}" # Service definition - "traefik.http.services.${CONTAINER_NAME:-gitea}-svc.loadbalancer.server.port=3000"