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
pull/2/head
Alpha Chen 2 years ago
parent b43bc57c6b
commit 0c42a169cf

@ -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" ]

@ -206,21 +206,25 @@
- traefik.http.services.pihole.loadbalancer.server.port=80 - traefik.http.services.pihole.loadbalancer.server.port=80
restart: unless-stopped restart: unless-stopped
syncthing: syncthing:
image: kejadlen/syncthing:latest image: syncthing/syncthing:latest
container_name: syncthing container_name: syncthing
ports: ports:
- 22000:22000/tcp - 22000:22000/tcp # TCP file transfers
- 21027:21027/udp - 22000:22000/udp # QUIC file transfers
- 21027:21027/udp # Receive local discovery broadcasts
volumes: volumes:
- /etc/syncthing:/etc/syncthing - /etc/syncthing:/var/syncthing
- /mnt/mushu/syncthing:/sync - /mnt/mushu/syncthing:/sync
user: 0:0 # root environment:
PUID: 0
PGID: 0
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.syncthing.rule=Host(`{{ traefik.host_rules.syncthing }}`) - traefik.http.routers.syncthing.rule=Host(`{{ traefik.host_rules.syncthing }}`)
- traefik.http.routers.syncthing.tls=true - traefik.http.routers.syncthing.tls=true
- traefik.http.routers.syncthing.tls.certresolver=le - traefik.http.routers.syncthing.tls.certresolver=le
- traefik.http.services.syncthing.loadbalancer.server.port=8384 - traefik.http.services.syncthing.loadbalancer.server.port=8384
restart: unless-stopped
traefik: traefik:
image: traefik:v2.5 image: traefik:v2.5
container_name: traefik container_name: traefik

Loading…
Cancel
Save