diff --git a/README.md b/README.md index a95e43c..962cddf 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ Not every stack is tested to fully work. - [x] Sonarr (prototype state, working itself, but transmission-on-host integration didn't work due to path mismatch) - [x] Speedtest (LibreSpeed) - [x] [Synapse](https://hub.docker.com/r/matrixdotorg/synapse) ([Matrix.org](https://matrix.org/) server) +- [ ] [Syncthing](https://hub.docker.com/r/linuxserver/syncthing) - [x] [Tor Privoxy](https://hub.docker.com/r/dperson/torproxy) - [x] Watchtower - [ ] [Wireguard](https://hub.docker.com/r/cmulk/wireguard-docker) (prototype state, not working yet) diff --git a/syncthing/.env.dist b/syncthing/.env.dist new file mode 100644 index 0000000..40cedcb --- /dev/null +++ b/syncthing/.env.dist @@ -0,0 +1,12 @@ +# see https://hub.docker.com/r/linuxserver/syncthing +PUID=0 +PGID=0 +TZ=Europe/Moscow + +HOST_DATA_DIR=/path/to/data/directory + +WEBUI_BIND_ADDR=127.0.0.1 +WEBUI_BIND_PORT=8384 + +LOG_MAX_SIZE=5m +LOG_MAX_FILE=5 \ No newline at end of file diff --git a/syncthing/config/.gitignore b/syncthing/config/.gitignore new file mode 100644 index 0000000..11b4bb1 --- /dev/null +++ b/syncthing/config/.gitignore @@ -0,0 +1,2 @@ +/* +!/.gitignore \ No newline at end of file diff --git a/syncthing/docker-compose.yml b/syncthing/docker-compose.yml new file mode 100644 index 0000000..3f240af --- /dev/null +++ b/syncthing/docker-compose.yml @@ -0,0 +1,22 @@ +version: '3.7' + +services: + syncthing: + image: lscr.io/linuxserver/syncthing + container_name: syncthing + #hostname: syncthing #optional + volumes: + - "./config:/config" + - "${HOST_DATA_DIR}:/data" + ports: + - "${WEBUI_BIND_ADDR}:${WEBUI_BIND_PORT}:8384" + - "22000:22000/tcp" + - "22000:22000/udp" + - "21027:21027/udp" + env_file: .env + restart: unless-stopped + logging: + driver: "json-file" + options: + max-size: "${LOG_MAX_SIZE:-5m}" + max-file: "${LOG_MAX_FILE:-5}"