small_server_thingies/navaja_syncthing_deploy.md
2022-09-07 22:50:53 +02:00

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:

  1. Create folder ~/synchting
  2. Create a docker-compose.yaml file 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
  1. Run with
cd ~/syncthing
docker-compose up -d
  1. Open up port 8384 to allow access.

  2. Set a password! Otherwise, syncthing is in the absolute open.

Standard should be pablo and noesfacilvivirenunmundocentralizado.

  1. Create a syncthing subdomain in porkbun.

  2. Modify nginx config to route the subdomain to synchthings port.