From 96346e939b1c1e1ef4f8ee852512943e6105656d Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 23 Nov 2023 00:10:44 -0800 Subject: [PATCH] Init gitea --- homelab/fighter/config/gitea/.env | 1 + .../fighter/config/gitea/docker-compose.yml | 24 +++++++++++++++++++ homelab/fighter/config/gitea/gitea.env | 2 ++ 3 files changed, 27 insertions(+) create mode 100644 homelab/fighter/config/gitea/.env create mode 100644 homelab/fighter/config/gitea/docker-compose.yml create mode 100644 homelab/fighter/config/gitea/gitea.env diff --git a/homelab/fighter/config/gitea/.env b/homelab/fighter/config/gitea/.env new file mode 100644 index 00000000..551e58f6 --- /dev/null +++ b/homelab/fighter/config/gitea/.env @@ -0,0 +1 @@ +DOCKER_DATA=/home/admin/data/gitea diff --git a/homelab/fighter/config/gitea/docker-compose.yml b/homelab/fighter/config/gitea/docker-compose.yml new file mode 100644 index 00000000..a2247632 --- /dev/null +++ b/homelab/fighter/config/gitea/docker-compose.yml @@ -0,0 +1,24 @@ +version: "3" +services: + server: + image: gitea/gitea:1.21.0 + container_name: gitea_gitea + env_file: + - gitea.env + restart: always + networks: + - web + volumes: + - $DOCKER_DATA/gitea:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: + - "2225:22" + labels: + - traefik.http.routers.gitea.rule=Host(`gitea.jafner.net`) + - traefik.http.routers.gitea.tls.certresolver=lets-encrypt + - traefik.http.routers.gitea.tls.options=tls12@file + - traefik.http.routers.gitea.middlewares=securityheaders@file +networks: + web: + external: true \ No newline at end of file diff --git a/homelab/fighter/config/gitea/gitea.env b/homelab/fighter/config/gitea/gitea.env new file mode 100644 index 00000000..53f8f744 --- /dev/null +++ b/homelab/fighter/config/gitea/gitea.env @@ -0,0 +1,2 @@ +USER_UID=1001 +USER_GID=1001 \ No newline at end of file