Syncthing bad address error when generate cert in docker.

Hi. When i start docker container with Syncthing, it was fault with error:

scth       | [start] 2024/12/07 00:11:15 INFO: syncthing v1.28.0 "Gold Grasshopper" (go1.23.2 linux-amd64) docker@github.syncthing.net 2024-10-04 19:47:57 UTC [noupgrade]
scth       | [start] 2024/12/07 00:11:15 INFO: Generating ECDSA key and certificate for syncthing...
scth       | [start] 2024/12/07 00:11:15 WARNING: Failed to load/generate certificate: save cert: write /var/syncthing/config/cert.pem: bad address
scth       | [monitor] 2024/12/07 00:11:15 INFO: Syncthing exited: exit status 1

How can i fix it? Docker compose part for Syncthing:

scth:
    image: syncthing/syncthing
    container_name: scth
    hostname: scth
    environment:
      - PUID=1000
      - PGID=1000
      - STGUIADDRESS=
      - UMASK=007
    volumes:
      - ./data/scth-mount/:/var/syncthing
    ports :
      - "127.0.0.1:8384:8384"
      - "127.0.0.1:22000:22000/tcp"
      - "127.0.0.1:22000:22000/udp"
      - "127.0.0.1:21027:21027/udp"
    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
    networks:
      - services

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.