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
This commit is contained in:
1 parent
d609f278da
commit
02a54c5649
2 files changed
+34
-7
No files matched your search
@@ -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
|
||||||
@@ -6,29 +6,33 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- USER_UID=${USER_UID:-1000}
|
- USER_UID=${USER_UID:-1000}
|
||||||
- USER_GID=${USER_GID:-1000}
|
- USER_GID=${USER_GID:-1000}
|
||||||
|
- TZ=${TZ:-UTC}
|
||||||
# Gitea configuration via environment variables
|
# Gitea configuration via environment variables
|
||||||
- GITEA__database__DB_TYPE=${DB_TYPE:-sqlite3}
|
- GITEA__database__DB_TYPE=${DB_TYPE:-sqlite3}
|
||||||
- GITEA__server__DOMAIN=${SERVICE_DOMAIN}
|
- GITEA__server__DOMAIN=${SERVICE_DOMAIN}
|
||||||
- GITEA__server__SSH_DOMAIN=${SSH_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__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:
|
volumes:
|
||||||
- ${DATA_PATH:-./data}:/data
|
- ./data:/data
|
||||||
- /etc/timezone:/etc/timezone:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
networks:
|
networks:
|
||||||
- proxy-net
|
- proxy-net
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
# WebSecure Router
|
# WebSecure Router
|
||||||
- "traefik.http.routers.${CONTAINER_NAME:-gitea}.rule=Host(`${SERVICE_DOMAIN}`)"
|
- "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}.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"
|
- "traefik.http.routers.${CONTAINER_NAME:-gitea}.service=${CONTAINER_NAME:-gitea}-svc"
|
||||||
# HTTP to HTTPS Redirect Router
|
# HTTP to HTTPS Redirect Router
|
||||||
- "traefik.http.routers.${CONTAINER_NAME:-gitea}-red.rule=Host(`${SERVICE_DOMAIN}`)"
|
- "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.entrypoints=${HTTP_ENTRYPOINT:-web}"
|
||||||
- "traefik.http.routers.${CONTAINER_NAME:-gitea}-red.middlewares=${HTTPS_REDIRECT_MIDDLEWARE}"
|
- "traefik.http.routers.${CONTAINER_NAME:-gitea}-red.middlewares=${HTTPS_REDIRECT_MIDDLEWARE:-https-redirect@docker}"
|
||||||
# Service definition
|
# Service definition
|
||||||
- "traefik.http.services.${CONTAINER_NAME:-gitea}-svc.loadbalancer.server.port=3000"
|
- "traefik.http.services.${CONTAINER_NAME:-gitea}-svc.loadbalancer.server.port=3000"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user