This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
shoarma/ansible/roles/syncthing/docker-stack.yml.j2
2023-05-02 13:44:19 +02:00

42 lines
917 B
Django/Jinja

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