From 7465942b945dd83a80aace1ad19a5c9015c7d8f3 Mon Sep 17 00:00:00 2001 From: Perflyst Date: Sat, 26 Feb 2022 10:23:00 +0100 Subject: [PATCH] Add gitea --- templates/compose/gitea.yml | 18 ++++++++++++++++++ templates/tin-Caddyfile.j2 | 5 +++++ tin.yml | 6 ++++++ 3 files changed, 29 insertions(+) create mode 100644 templates/compose/gitea.yml diff --git a/templates/compose/gitea.yml b/templates/compose/gitea.yml new file mode 100644 index 0000000..0fe39b7 --- /dev/null +++ b/templates/compose/gitea.yml @@ -0,0 +1,18 @@ +--- +services: + server: + image: docker.io/gitea/gitea:1.16.2 + environment: + - USER_UID=1000 + - USER_GID=1000 + restart: unless-stopped + volumes: + - gitea:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: + - "3200:3000" + - "222:22" + +volumes: + gitea: diff --git a/templates/tin-Caddyfile.j2 b/templates/tin-Caddyfile.j2 index db810f2..eb984d6 100644 --- a/templates/tin-Caddyfile.j2 +++ b/templates/tin-Caddyfile.j2 @@ -43,6 +43,11 @@ git.invidious.io { import block-robots redir https://github.com/iv-org/invidious } +gitea.invidious.io { + import common + import block-robots + reverse_proxy http://127.0.0.1:3200 +} invidio.us { import common diff --git a/tin.yml b/tin.yml index d648e0d..f18768f 100644 --- a/tin.yml +++ b/tin.yml @@ -61,6 +61,12 @@ app: invidious.io tags: [website, docker] + - name: Deploy gitea + import_tasks: tasks/compose.yml + vars: + app: gitea + tags: [gitea, docker] + - name: caddy import_role: name: caddy_ansible.caddy_ansible