Add gitea

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
pull/1/head
TuDatTr 2023-10-09 01:33:23 +02:00
parent 320c7cdd7a
commit 582aa5e235
5 changed files with 48 additions and 8 deletions

View File

@ -502,3 +502,16 @@ homarr:
volumes:
configs: "{{docker_dir}}/homarr/configs"
icons: "{{docker_dir}}/homarr/icons"
#
# gitea
#
gitea:
host: "git"
volumes:
data: "{{ docker_data_dir }}/gitea/data"
config: "{{ docker_dir }}/gitea/config"
ports:
http: "3000"
ssh: "2222"

View File

@ -86,3 +86,7 @@
- include_tasks: jellyfin.yml
tags:
- jellyfin
- include_tasks: gitea.yml
tags:
- gitea

View File

@ -0,0 +1,12 @@
- name: Create gitea directories
file:
path: "{{ item }}"
owner: "{{ puid }}"
group: "{{ pgid }}"
mode: '755'
state: directory
become: yes
loop:
- "{{ gitea.volumes.data }}"
- "{{ gitea.volumes.config }}"

View File

@ -412,8 +412,6 @@ services:
- broker
networks:
- net
ports:
- "{{ paperless.port }}:{{ paperless.port }}"
healthcheck:
test: ["CMD", "curl", "-fs", "-S", "--max-time", "2", "http://localhost:{{ paperless.port }}"]
interval: 30s
@ -447,6 +445,24 @@ services:
- {{ homarr.volumes.configs }}:/app/data/configs
- {{ homarr.volumes.icons }}:/app/public/icons
{{ gitea.host }}:
container_name: {{ gitea.host }}
image: gitea/gitea:1.20.5-rootless
restart: unless-stopped
depends_on:
- pihole
networks:
- net
volumes:
- {{ gitea.volumes.data }}:/var/lib/gitea
- {{ gitea.volumes.config }}:/etc/gitea
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "{{ gitea.ports.http }}:3000"
- "{{ gitea.ports.ssh }}:2222"
networks:
zoneminder:
driver: bridge

View File

@ -4,9 +4,6 @@
writable = no
guest ok = no
valid users = "@{{samba.group}}"
force create mode = 770
force directory mode = 770
inherit permissions = yes
[{{ samba.shares.paperless.name }}]
comment = {{ samba.shares.paperless.name }}
@ -14,6 +11,4 @@
writable = yes
guest ok = no
valid users = "@{{samba.group}}"
force create mode = 770
force directory mode = 770
inherit permissions = yes
create mask = 755