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
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

Loading…
Cancel
Save