Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

bambocher/docker-syncthing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Syncthing Docker Image

Version Layers Commit License Automated Build Docker Pulls

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

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
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

About

Syncthing Docker image based on Alpine Linux

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages