version: "3.9" x-traefik-label: &traefik-label traefik.enable: true traefik.http.routers.gitea.service: gitea traefik.http.services.gitea.loadbalancer.server.port: 3000 services: gitea: image: gitea/gitea:1.22.1 container_name: gitea labels: <<: *traefik-label privileged: true user: root expose: - "3000" - "22" ports: - "2226:22" volumes: - /volume5/storage/docker-data/gitea/data/:/data/ environment: TZ: Asia/Shanghai GITEA__server__DOMAIN: "gitea.czy21-internal.com" GITEA__server__SSH_DOMAIN: "gitea.czy21-internal.com" GITEA__server__ROOT_URL: "http://gitea.czy21-internal.com/" GITEA__server__HTTP_PORT: "3000" GITEA__server__LANDING_PAGE: explore GITEA__security__INSTALL_LOCK: true GITEA__database__DB_TYPE: mysql GITEA__database__NAME: gitea GITEA__database__HOST: ":3306" GITEA__database__USER: "" GITEA__database__PASSWD: "" GITEA__service__DISABLE_REGISTRATION: true GITEA__packages__ENABLED: "true" GITEA__repository__DEFAULT_REPO_UNITS: repo.code,repo.releases GITEA__repository__DISABLED_REPO_UNITS: repo.issues, repo.ext_issues, repo.pulls, repo.wiki, repo.ext_wiki GITEA__attachment__MAX_SIZE: 1024 GITEA__attachment__MAX_FILES: 20 GITEA__webhook__ALLOWED_HOST_LIST: "*" restart: always