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

53 lines
1.3 KiB
Text
Raw Normal View History

2023-05-02 11:44:19 +00:00
# vi: ft=yaml
version: "3"
2023-05-04 11:04:57 +00:00
networks:
traefik:
external: true
2023-05-02 11:44:19 +00:00
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
2023-05-04 11:04:57 +00:00
networks:
- traefik
2023-05-02 11:44:19 +00:00
deploy:
placement:
constraints:
- "node.labels.syncthing == true"
labels:
2023-05-04 11:04:57 +00:00
- traefik.enable=true
- traefik.http.routers.syncthing.entrypoints=localsecure
- traefik.http.routers.syncthing.rule=Host(`syncthing.pim.kunis.nl`)
- traefik.http.routers.syncthing.service=syncthing
- traefik.http.routers.syncthing.tls=true
- traefik.http.routers.syncthing.tls.certresolver=letsencrypt
2023-05-04 12:12:51 +00:00
- traefik.docker.network=traefik
2023-05-04 11:04:57 +00:00
- traefik.http.services.syncthing.loadbalancer.server.port=8384
2023-05-02 11:44:19 +00:00
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Amsterdam
volumes:
- type: bind
source: /mnt/data/syncthing
target: /data
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'