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