chore(podman): run syncthing

This commit is contained in:
Michele Cereda
2025-12-26 14:24:10 +01:00
parent 51c6d0921f
commit eb2f30a91a
4 changed files with 107 additions and 14 deletions

View File

@@ -1,16 +1,17 @@
---
# See https://github.com/syncthing/syncthing/blob/main/README-Docker.md
# Refer https://github.com/syncthing/syncthing/blob/main/README-Docker.md
version: "3"
services:
syncthing:
image: syncthing/syncthing:1.27.8
image: syncthing/syncthing:2.0.12
container_name: syncthing
hostname: MacBook-Pro
environment:
- PUID=501
- PGID=20
- STGUIADDRESS=0.0.0.0:8384
volumes:
- ${PWD}/config:/var/syncthing/config
- config:/var/syncthing/config:z
- ${PWD}/data:/var/syncthing/data
ports:
# No way to use 'host' mode in OS X
@@ -19,5 +20,10 @@ services:
- 22000:22000/udp # QUIC file transfers
- 21027:21027/udp # Receive local discovery broadcasts
restart: unless-stopped
healthcheck:
test: curl -fkLsS -m 2 127.0.0.1:8384/rest/noauth/health | grep -o --color=never OK || exit 1
interval: 1m
timeout: 10s
retries: 3
volumes:
config:

View File

@@ -1,18 +1,24 @@
---
# See https://github.com/syncthing/syncthing/blob/main/README-Docker.md
# Refer https://github.com/syncthing/syncthing/blob/main/README-Docker.md
version: "3"
services:
syncthing:
image: syncthing/syncthing:1.27.7
image: syncthing/syncthing:2.0.12
container_name: syncthing
hostname: ${HOSTNAME}
environment:
- PUID=1000
- PGID=100
- PUID=${UID-1000} # use 0 with podman
- PGID=${GID-1000} # use 0 with podman
- STGUIADDRESS=0.0.0.0:8384
volumes:
- config:/var/syncthing/config
- config:/var/syncthing/config:z
- ${PWD}/data:/var/syncthing/data
network_mode: host
restart: unless-stopped
healthcheck:
test: curl -fkLsS -m 2 127.0.0.1:8384/rest/noauth/health | grep -o --color=never OK || exit 1
interval: 1m
timeout: 10s
retries: 3
volumes:
config: