apps: add syncthing

This commit is contained in:
Yuri Tatishchev 2025-02-25 23:00:11 -08:00
parent 88133daf7e
commit 963ba3d785
Signed by: CaZzzer
GPG Key ID: E0EBF441EA424369
4 changed files with 33 additions and 1 deletions

View File

@ -29,6 +29,7 @@
stacks:
- gitea
- woodpecker
- syncthing
- nextcloud
- jellyfin
- arrstack

View File

@ -0,0 +1,16 @@
{% import 'contrib/compose_helpers.j2' as helpers with context %}
networks:
{{ helpers.default_network(193) | indent(2) }}
services:
syncthing:
image: linuxserver/syncthing
container_name: syncthing
labels:
- {{ helpers.traefik_labels('sync', port='8384', auth=true) | indent(6) }}
restart: unless-stopped
network_mode: host
volumes:
- {{ base_volume_path }}/syncthing/config:/config
- {{ base_volume_path }}/syncthing/data:/data

View File

@ -13,6 +13,13 @@ entries:
"ui_group": "Services",
"allowed_for_groups": ["admins"],
},
"Syncthing": {
"host": "sync",
"icon": "https://sync."~ domain ~"/assets/img/favicon-default.png",
"unauthenticated_paths": "^/assets/img/favicon-default.png$",
"ui_group": "Apps",
"allowed_for_groups": ["admins"],
},
"qBit": {
"host": "qbit",
"icon": "https://qbit."~ domain ~"/images/qbittorrent-tray.svg",

View File

@ -32,7 +32,7 @@
state: enabled
immediate: yes
- name: Allow Web
- name: Disallow Web
become: yes
firewalld:
service: http
@ -72,6 +72,14 @@
state: enabled
immediate: yes
- name: Allow Syncthing
become: yes
firewalld:
service: syncthing
permanent: yes
state: enabled
immediate: yes
- name: Reboot if needed
become: yes
ansible.builtin.reboot: