From 2f07c5e584fea357593c27431e7dd157e80ce2b8 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Mon, 9 May 2022 10:25:45 +0200 Subject: [PATCH] Add syncthing instance for ju --- homelab.org | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/homelab.org b/homelab.org index fe42b46..b84723d 100644 --- a/homelab.org +++ b/homelab.org @@ -562,6 +562,10 @@ access_control: policy: one_factor subject: - ["group:admins"] + - domain: sync-ju.tdehaeze.xyz + policy: one_factor + subject: + - ["group:admins"] - domain: sync-jm.tdehaeze.xyz policy: one_factor subject: @@ -1792,6 +1796,36 @@ services: logging: *default-logging #+end_src +*** =sync-ju= - File Synchronization ([[https://hub.docker.com/r/linuxserver/syncthing][link]]) +#+begin_src yaml + sync-ju: + container_name: sync-ju + image: linuxserver/syncthing + restart: unless-stopped + networks: + - t2_proxy + environment: + - PUID=$PUID + - PGID=$PGID + - TZ=$TZ + - UMASK_SET=022 + volumes: + - $CONFIGDIR/sync-ju:/config + - /srv/storage/Users/juliette:/Cloud + ports: + - 22003:22003 + - 21030:21030/udp + labels: + - "traefik.enable=true" + - "traefik.http.routers.sync-ju-rtr.entrypoints=https" + - "traefik.http.routers.sync-ju-rtr.rule=Host(`sync-ju.$DOMAINNAME`)" + - "traefik.http.routers.sync-ju-rtr.tls=true" + - "traefik.http.routers.sync-ju-rtr.service=sync-ju-svc" + - "traefik.http.routers.sync-ju-rtr.middlewares=authelia@docker" + - "traefik.http.services.sync-ju-svc.loadbalancer.server.port=8384" + logging: *default-logging +#+end_src + *** =filebrowser= - Web file browser ([[https://hub.docker.com/r/filebrowser/filebrowser][link]]) #+begin_src yaml filebrowser: