Add Syncthing
This commit is contained in:
parent
b685c81607
commit
dcb05bf0d4
|
@ -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
|
||||
|
|
@ -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:
|
Loading…
Reference in New Issue