I am trying to setup syncthing using docker-compose, behind traefik. I am able to get version 1.22.0 running if I create the container using Portainer, but when I run my docker-compose to get it setup, portainers logs (for syncthing) show the following: exec /bin/entrypoint.sh: operation not permitted
version: '3'
services:
syncthing:
image: 'syncthing/syncthing:${SYNCTHING_IMAGE_VERSION:-latest}'
cap_add:
- AUDIT_WRITE
- CHOWN
- DAC_OVERRIDE
- FOWNER
- FSETID
- KILL
- MKNOD
- NET_BIND_SERVICE
- NET_RAW
- SETFCAP
- SETGID
- SETPCAP
- SETUID
- SYS_CHROOT
container_name: syncthing
environment:
- 'TZ=America/New_York'
- 'PUID=1000'
- 'PGID=1000'
# labels:
- 'traefik.enable=true'
- 'traefik.http.routers.sync.entrypoints=web,websecure'
- 'traefik.http.routers.sync.rule=Host(`sync.${SITE:-localhost}`)' # <== Setting the domain for the dashboard - 'traefik.http.routers.sync.tls=true'
- 'traefik.http.routers.sync.service=sync'
- 'traefik.http.services.sync.loadbalancer.server.port=8384'
# - 'traefik.http.services.sync.loadbalancer_sync.server.port=22000'
# - 'traefik.http.services.sync.loadbalancer_sync_udp.server.port=21027/udp'
# networks:
# - 'traefik' # <== Placing this on the network
network_mode: bridge
ports:
- '8384:8384'
- '22000:22000'
- '21027:21027/udp'
restart: always
security_opt:
- 'no-new-privileges:true'
volumes:
- './syncthing/conf:/var/syncthing/config' # <== Volume to have the synchronized files available on the host
- './syncthing/data:/var/syncthing/data' # <== Volume to have the synchronized files available on the host
- '/etc/timezone:/etc/timezone:ro' # <== Volume for TIME ZONE
- '/etc/localtime:/etc/localtime:ro' # <== Volume for TIME
#networks:
# traefik:
# name: traefik