Put Syncthing behind an ingress container

This commit is contained in:
Salt 2021-11-24 10:43:29 -06:00
parent 3d9ec54467
commit 12f33d9ffc
2 changed files with 20 additions and 1 deletions

View File

@ -26,6 +26,10 @@
state: started
restart_policy: unless-stopped
pull: yes
pre_tasks:
- name: ensure docker network
docker_network: name=web
tags: [ docker ]
tasks:
- name: assure nfs mount directory
file: path=/data/syncthing/data state=directory mode=0755
@ -44,3 +48,16 @@
backup_s3backup_list_extra:
- /data/syncthing/config
tags: [ backup ]
- role: ingress
vars:
ingress_container_image: "nginx:latest"
ingress_container_ports:
- 80:80
ingress_container_config_mount: /etc/nginx/conf.d
ingress_container_persist_dir: /data/nginx
ingress_listen_args: 80
ingress_listen_tls: no
ingress_servers:
- name: syncthing.local.desu.ltd
proxy_pass: http://syncthing:8384
tags: [ ingress ]

View File

@ -7,11 +7,13 @@
PUID: "1000"
PGID: "1000"
TZ: America/Chicago
networks:
- name: web
aliases: [ "syncthing" ]
volumes:
- /data/syncthing/config:/config
- /data/syncthing/data:/data
ports:
- 8384:8384
- 22000:22000/tcp
- 22000:22000/udp
- 21027:21027/udp