LoginSignup
1
1

More than 5 years have passed since last update.

syncthingをdocker-composeで起動する方法

Last updated at Posted at 2018-10-09

YAMLを作る

docker-compose.yml
version: '3'
services:
  syncthing:
    image: syncthing/syncthing
    ports:
    - "127.0.0.1:8384:8384"
    - "127.0.0.1:22000:22000"
    volumes:
    - ./config:/var/syncthing/config
    - ./data:/var/syncthing
    logging:
      options:
        max-size: "200k"
        max-file: "10"

ディレクトリのパーミッションを700にしておく

mkdir config data
chmod 700 config data

コンテナを起動する

docker-compose up -d
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1