2019-09-01 21:37:44 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Assumes pew-net exists
|
|
|
|
# Create mounted dirs (as non-root) before launching
|
|
|
|
|
|
|
|
docker run \
|
|
|
|
--name syncthing \
|
|
|
|
--detach \
|
|
|
|
--restart unless-stopped \
|
|
|
|
--env PUID=1000 \
|
|
|
|
--env PGID=1000 \
|
|
|
|
--env TZ=Europe/London \
|
|
|
|
--env UMASK_SET=022 \
|
2019-09-08 16:23:30 -04:00
|
|
|
--volume $PWD/syncthing-config:/config:rw \
|
|
|
|
--volume $PWD/syncthing-sync:/sync-docker:rw \
|
2019-09-01 21:37:44 -04:00
|
|
|
--publish 22000:22000 \
|
|
|
|
--publish 21027:21027/udp \
|
|
|
|
--network pew-net \
|
2019-10-27 17:07:48 -04:00
|
|
|
linuxserver/syncthing:v1.3.0-ls20
|