These are some guides for various use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.6 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. # Syncthing
  2. ## Setup
  3. ### Docker
  4. The official container and documentation was made by [linuxserver](https://hub.docker.com/r/linuxserver/syncthing).
  5. #### Environment-variables
  6. Set the following variables with the -e tag.
  7. | Name | Usage | Default |
  8. | ----------- | ---------------- | ------- |
  9. | `PUID` | UserID | |
  10. | `PGID` | GroupID | |
  11. | `TZ` | Timezone | |
  12. | `UMASK_SET` | setting usermask | |
  13. #### Volumes
  14. Set the following volumes with the -v tag.
  15. | Volume-Name | Container mount | Description |
  16. | ------------------ | --------------- | ----------------------------------------------- |
  17. | `syncthing_config` | `/config` | storage for config and possible downloaded data |
  18. #### Ports
  19. Set the following ports with the -p tag.
  20. | Container Port | Recommended outside port | Protocol | Description |
  21. | -------------- | ------------------------ | -------- | ------------------ |
  22. | `8384` | `8384` | TCP | WebUI |
  23. | `22000` | `22000` | TCP | Syncthing internal |
  24. | `21027` | `21027` | UDP | Syncthing internal |
  25. #### Rebuild
  26. ```shell
  27. #!/bin/sh
  28. docker stop syncthing
  29. docker rm syncthing
  30. docker pull linuxserver/syncthing
  31. docker run --name syncthing \
  32. --restart unless-stopped \
  33. -p 8384:8384 \
  34. -p 22000:22000 \
  35. -p 21027:21027/udp \
  36. -v syncthing_config:/config \
  37. -e PUID=0 \
  38. -e PGID=0 \
  39. -e TZ=Europe/Berlin \
  40. -e UMASK_SET=022 \
  41. -d linuxserver/syncthing
  42. ```