Add Syncthing

This commit is contained in:
BatchAccount 1001 2022-12-03 00:27:52 +01:00
parent b685c81607
commit dcb05bf0d4
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,17 @@
[Unit]
Description=Docker Compose Syncthing Application Service
Requires=docker.service
After=docker.service
[Service]
WorkingDirectory=/opt/syncthing
ExecStart=/usr/bin/docker-compose --project-name syncthing up
ExecStop=/usr/bin/docker-compose --project-name syncthing down
TimeoutStartSec=0
Restart=on-failure
StartLimitIntervalSec=60
StartLimitBurst=3
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,16 @@
version: "3"
services:
syncthing:
image: syncthing/syncthing:1.22.2
restart: unless-stopped
network_mode: host
hostname: gergesa
environment:
- PUID=1000
- PGID=1000
- STGUIADDRESS=
volumes:
- syncthing:/var/syncthing
volumes:
syncthing: