1.1 KiB
1.1 KiB
Navaja Syncthing Deploy
I am going to use this for syncthing backup folders that need to always be updated in real time, given that my laptop is not reliable since sometimes it's turned off or has no wifi.
To run syncthing:
- Create folder
~/synchting - Create a
docker-compose.yamlfile inside with the contents below
version: "3"
services:
syncthing:
image: syncthing/syncthing
container_name: syncthing
hostname: navaja-syncthing
environment:
- PUID=1000
- PGID=1000
volumes:
- ~/syncthing/:/var/syncthing
ports:
- 8384:8384 # Web UI
- 22000:22000/tcp # TCP file transfers
- 22000:22000/udp # QUIC file transfers
- 21027:21027/udp # Receive local discovery broadcasts
restart: unless-stopped
- Run with
cd ~/syncthing
docker-compose up -d
-
Open up port 8384 to allow access.
-
Set a password! Otherwise, syncthing is in the absolute open.
Standard should be pablo and noesfacilvivirenunmundocentralizado.
-
Create a syncthing subdomain in porkbun.
-
Modify nginx config to route the subdomain to synchthings port.