2021-06-03 09:54:35 +02:00
|
|
|
version: "3.5"
|
2021-05-17 11:55:03 +02:00
|
|
|
services:
|
|
|
|
syncthing:
|
|
|
|
container_name: linuxserver-syncthing
|
|
|
|
image: ghcr.io/linuxserver/syncthing
|
2021-06-10 09:56:26 +02:00
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
2021-06-14 09:09:17 +02:00
|
|
|
networks:
|
2021-06-03 09:54:35 +02:00
|
|
|
- custom-bridge
|
2021-05-17 11:55:03 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- ${SYNCTHING_WEBUI_PORT:-8384}:8384
|
2021-06-14 09:09:17 +02:00
|
|
|
- ${SYNCTHING_DSC_PORT:-21027}:21027/udp
|
|
|
|
- ${SYNCTHING_LST_PORT:-22000}:22000/tcp
|
|
|
|
- ${SYNCTHING_LST_PORT:-22000}:22000/udp
|
2021-05-17 11:55:03 +02:00
|
|
|
env_file: .env
|
|
|
|
sysctls:
|
|
|
|
- net.core.rmem_max=2097152
|
|
|
|
volumes:
|
|
|
|
- ${SYNCTHING_CONFIG:-/home/docker/syncthing/config}:/config
|
2021-06-03 09:54:35 +02:00
|
|
|
- ${SYNCTHING_DATA:-/home/docker/syncthing/data}:/data
|
|
|
|
|
|
|
|
networks:
|
|
|
|
custom-bridge:
|
|
|
|
name: custom-bridge
|
|
|
|
driver: bridge
|