diff --git a/syncthing/.gitignore b/syncthing/.gitignore new file mode 100644 index 0000000..8fce603 --- /dev/null +++ b/syncthing/.gitignore @@ -0,0 +1 @@ +data/ diff --git a/syncthing/compose.sh b/syncthing/compose.sh new file mode 100755 index 0000000..eb683f3 --- /dev/null +++ b/syncthing/compose.sh @@ -0,0 +1,19 @@ +#/bin/bash + +# designed for local machines (not accessible over the internet) + +podman pod create --name=syncthing \ + -p 8384:8384 \ + -p 22000:22000/tcp \ + -p 22000:22000/udp \ + -p 21027:21027/udp + +# 8384 = web ui +# 22000 = file transfer +# 21027 = local discovery + +podman create \ + --pod syncthing \ + --name client \ + --volume=./data/:/var/syncthing/:Z \ + docker.io/syncthing/syncthing