Skip to content

Commit 387ae16

Browse files
author
pmoya-in-the-web
committed
App default dir & host mode
1 parent a02e067 commit 387ae16

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

.templates/syncthing/service.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
syncthing:
2-
image: linuxserver/syncthing:latest
3-
container_name: syncthing
4-
hostname: raspberrypi #optional
5-
restart: unless-stopped
6-
environment:
7-
- PUID=1000
8-
- PGID=1000
9-
- TZ=Etc/UTC
10-
volumes:
11-
- ./volumes/syncthing/config:/config
12-
- ./volumes/syncthing/data:/app
13-
ports:
14-
- "8384:8384" # Web UI
15-
- "22000:22000/tcp" # TCP file transfers
16-
- "22000:22000/udp" # QUIC file transfers
17-
- "21027:21027/udp" # Receive local discovery broadcasts
1+
syncthing:
2+
image: linuxserver/syncthing:latest
3+
container_name: syncthing
4+
hostname: raspberrypi #optional
5+
environment:
6+
- PUID=1000
7+
- PGID=1000
8+
- HOME=/app
9+
- TZ=Etc/UTC
10+
volumes:
11+
- ./volumes/syncthing/config:/config
12+
- ./volumes/syncthing/data:/app
13+
#ports:
14+
# - 8384:8384 # Web UI
15+
# - 22000:22000/tcp # TCP file transfers
16+
# - 22000:22000/udp # QUIC file transfers
17+
# - 21027:21027/udp # Receive local discovery broadcasts
18+
network_mode: host
1819

1920

0 commit comments

Comments
 (0)