new: add Gitea

This commit is contained in:
2024-06-08 21:42:50 +00:00
parent fd7a550dc5
commit 26bab08ea0
2 changed files with 32 additions and 0 deletions

3
gitea/.env.example Normal file
View File

@@ -0,0 +1,3 @@
# https://docs.gitea.com/administration/config-cheat-sheet
# GITEA____APP_NAME=
# GITEA__SERVER__DOMAIN=

29
gitea/compose.yml Normal file
View File

@@ -0,0 +1,29 @@
services:
gitea:
container_name: gitea
image: gitea/gitea:1
networks:
- dmz
- ldap
ports:
- 2222:22
volumes:
- ./appdata:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
env_file: .env
labels:
# Caddy
caddy: "*.{$$INT_DOMAIN}"
caddy.1_@git: host git.{$$INT_DOMAIN}
caddy.1_handle: "@git"
caddy.1_handle.reverse_proxy: "{{upstreams 3000}}"
# Diun
diun.enable: true
networks:
dmz:
external: true
ldap:
external: true