Public | Automated Build

Last pushed: a month ago
Short Description
Syncthing Docker image based on Alpine Linux and support Inotify image.
Full Description

Syncthing Docker Image

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

Docker Pull Command
Owner
bambucha
Source Repository