Sign inSign up

bambucha/syncthing

By bambucha

Updated over 8 years ago

Syncthing Docker image based on Alpine Linux and support Inotify image.

Image
0

1.9K

bambucha/syncthing repository overview

Syncthing Docker Image

Version Layers Commit License Automated Build Docker Pulls

Syncthing Docker image based on Alpine Linux and support Inotify image.

Docker Run

SYNC_USER=$(id -u)
SYNC_GROUP=$(id -g)
SYNC_CONF=$(pwd)/config
SYNC_DATA=$(pwd)/data
sudo mkdir $SYNC_DATA $SYNC_CONF
sudo chown $SYNC_USER:$SYNC_GROUP $SYNC_DATA $SYNC_CONF

sudo docker run \
    -d \
    --restart always \
    --name syncthing \
    --user $SYNC_USER:$SYNC_GROUP \
    -p 8384:8384 \
    -p 22000:22000 \
    -p 21025:21025/udp \
    -p 21026:21026/udp \
    -p 21027:21027/udp \
    -v $SYNC_CONF:/syncthing \
    -v $SYNC_DATA:/mnt \
    bambucha/syncthing

Docker Compose with Inotify image

SYNC_USER=1000
SYNC_GROUP=1000
SYNC_CONF=$(pwd)/config
SYNC_DATA=$(pwd)/data
sudo mkdir $SYNC_DATA $SYNC_CONF
sudo chown $SYNC_USER:$SYNC_GROUP $SYNC_DATA $SYNC_CONF
vi docker-compose.yml
version: "2"
services:
  syncthing:
    restart: always
    image: bambucha/syncthing
    user: 1000:1000
    volumes:
      - ./config:/syncthing
      - ./data:/mnt
    ports:
      - 8384:8384
      - 22000:22000
      - 21025:21025/udp
      - 21026:21026/udp
      - 21027:21027/udp
  inotify:
    restart: always
    image: bambucha/syncthing-inotify
    user: 1000:1000
    volumes:
      - ./config:/syncthing:ro
      - ./data:/mnt:ro
    links:
      - syncthing
docker-compose up -d

License

The MIT License

Tag summary

Content type

Image

Digest

Size

7.9 MB

Last updated

over 8 years ago

docker pull bambucha/syncthing