fix syncthing on on-fire-within
The config goes in `/var/syncthing/config`, now that we're using the
actual Docker image, and the pid/gid need to be updated as well
change
commit 0c42a169cf7bf5f63c984da270d286907f5cfc43
author Alpha Chen <alpha@kejadlen.dev>
date
parent b43bc57c
diff --git a/meta/docker/syncthing/Dockerfile b/meta/docker/syncthing/Dockerfile
deleted file mode 100644
index 820cf1d6..00000000
--- a/meta/docker/syncthing/Dockerfile
+++ /dev/null
@@ -1,14 +0,0 @@
-FROM armhf/alpine
-
-RUN apk update && apk upgrade && \
-    apk add curl
-
-RUN curl --location --remote-name https://github.com/syncthing/syncthing/releases/download/v1.3.2/syncthing-linux-arm-v1.3.2.tar.gz && \
-    tar xvz < syncthing-linux-arm-v1.3.2.tar.gz && \
-    mv syncthing-linux-arm-v1.3.2/syncthing /usr/sbin && \
-    mkdir /etc/syncthing
-
-RUN adduser -D syncthing
-USER syncthing
-
-ENTRYPOINT [ "syncthing", "-gui-address=0.0.0.0:8384", "-home=/etc/syncthing" ]
diff --git a/meta/on-fire-within/main.yml b/meta/on-fire-within/main.yml
index 894dc811..fbf2a277 100644
--- a/meta/on-fire-within/main.yml
+++ b/meta/on-fire-within/main.yml
@@ -206,21 +206,25 @@
                 - traefik.http.services.pihole.loadbalancer.server.port=80
               restart: unless-stopped
             syncthing:
-              image: kejadlen/syncthing:latest
+              image: syncthing/syncthing:latest
               container_name: syncthing
               ports:
-                - 22000:22000/tcp
-                - 21027:21027/udp
+                - 22000:22000/tcp # TCP file transfers
+                - 22000:22000/udp # QUIC file transfers
+                - 21027:21027/udp # Receive local discovery broadcasts
               volumes:
-                - /etc/syncthing:/etc/syncthing
+                - /etc/syncthing:/var/syncthing
                 - /mnt/mushu/syncthing:/sync
-              user: 0:0 # root
+              environment:
+                PUID: 0
+                PGID: 0
               labels:
                 - traefik.enable=true
                 - traefik.http.routers.syncthing.rule=Host(`{{ traefik.host_rules.syncthing }}`)
                 - traefik.http.routers.syncthing.tls=true
                 - traefik.http.routers.syncthing.tls.certresolver=le
                 - traefik.http.services.syncthing.loadbalancer.server.port=8384
+              restart: unless-stopped
             traefik:
               image: traefik:v2.5
               container_name: traefik