don't manage syncthing configuration using Docker

expose syncthing config on NFS
This commit is contained in:
Pim Kunis 2023-12-29 12:11:53 +01:00
parent 36b2b48692
commit bf178f61c8
7 changed files with 12 additions and 334 deletions

View file

@ -5,18 +5,12 @@ networks:
traefik:
external: true
configs:
config:
external: true
name: "{{ config.config_name }}"
private_key:
external: true
name: "{{ key.config_name }}"
certificate:
external: true
name: "{{ cert.config_name }}"
volumes:
config:
driver_opts:
type: "nfs"
o: "addr=192.168.30.10,nolock,soft,rw"
device: ":/mnt/data/syncthing/config"
nextcloud_data:
driver_opts:
type: "nfs"
@ -49,14 +43,8 @@ services:
target: /data
volume:
nocopy: true
configs:
- source: config
target: /config/config.xml
- source: private_key
target: /config/key.pem
uid: '33'
gid: '33'
- source: certificate
target: /config/cert.pem
uid: '33'
gid: '33'
- type: volume
source: config
target: /config
volume:
nocopy: true