apps: add syncthing
This commit is contained in:
parent
88133daf7e
commit
963ba3d785
@ -29,6 +29,7 @@
|
|||||||
stacks:
|
stacks:
|
||||||
- gitea
|
- gitea
|
||||||
- woodpecker
|
- woodpecker
|
||||||
|
- syncthing
|
||||||
- nextcloud
|
- nextcloud
|
||||||
- jellyfin
|
- jellyfin
|
||||||
- arrstack
|
- arrstack
|
||||||
|
16
roles/alpina/templates/apps/syncthing/compose.yml.j2
Normal file
16
roles/alpina/templates/apps/syncthing/compose.yml.j2
Normal 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
|
@ -13,6 +13,13 @@ entries:
|
|||||||
"ui_group": "Services",
|
"ui_group": "Services",
|
||||||
"allowed_for_groups": ["admins"],
|
"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": {
|
"qBit": {
|
||||||
"host": "qbit",
|
"host": "qbit",
|
||||||
"icon": "https://qbit."~ domain ~"/images/qbittorrent-tray.svg",
|
"icon": "https://qbit."~ domain ~"/images/qbittorrent-tray.svg",
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
state: enabled
|
state: enabled
|
||||||
immediate: yes
|
immediate: yes
|
||||||
|
|
||||||
- name: Allow Web
|
- name: Disallow Web
|
||||||
become: yes
|
become: yes
|
||||||
firewalld:
|
firewalld:
|
||||||
service: http
|
service: http
|
||||||
@ -72,6 +72,14 @@
|
|||||||
state: enabled
|
state: enabled
|
||||||
immediate: yes
|
immediate: yes
|
||||||
|
|
||||||
|
- name: Allow Syncthing
|
||||||
|
become: yes
|
||||||
|
firewalld:
|
||||||
|
service: syncthing
|
||||||
|
permanent: yes
|
||||||
|
state: enabled
|
||||||
|
immediate: yes
|
||||||
|
|
||||||
- name: Reboot if needed
|
- name: Reboot if needed
|
||||||
become: yes
|
become: yes
|
||||||
ansible.builtin.reboot:
|
ansible.builtin.reboot:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user