43 lines
917 B
Text
43 lines
917 B
Text
|
# vi: ft=yaml
|
||
|
version: "3"
|
||
|
|
||
|
configs:
|
||
|
config:
|
||
|
file: /srv/syncthing/config.xml
|
||
|
private_key:
|
||
|
file: /srv/syncthing/key.pem
|
||
|
certificate:
|
||
|
file: /srv/syncthing/cert.pem
|
||
|
|
||
|
services:
|
||
|
syncthing:
|
||
|
image: lscr.io/linuxserver/syncthing:latest
|
||
|
deploy:
|
||
|
placement:
|
||
|
constraints:
|
||
|
- "node.labels.syncthing == true"
|
||
|
labels:
|
||
|
- traefik.enable=false
|
||
|
- com.centurylinklabs.watchtower.enable=false
|
||
|
environment:
|
||
|
- PUID=1000
|
||
|
- PGID=1000
|
||
|
- TZ=Europe/Amsterdam
|
||
|
volumes:
|
||
|
- type: bind
|
||
|
source: /mnt/data/syncthing
|
||
|
target: /data
|
||
|
ports:
|
||
|
- 8384:8384
|
||
|
configs:
|
||
|
- source: config
|
||
|
target: /config/config.xml
|
||
|
- source: private_key
|
||
|
target: /config/key.pem
|
||
|
uid: '1000'
|
||
|
gid: '1000'
|
||
|
- source: certificate
|
||
|
target: /config/cert.pem
|
||
|
uid: '1000'
|
||
|
gid: '1000'
|