syncthing/discosrv no working

I started by deploying the Syncthing/discosrv container using Docker Compose, here is the YAML code:

version: "3"
services:
  syncthing_discovery_server:
    image: syncthing/discosrv
    container_name: syncthing-discovery-server
    command: -debug -listen=":8443"
    environment:
      - PUID=0
      - PGID=0
    volumes:
      - /wherever/st-sync/config:/var/stdiscosrv
    ports:
      - 8443:8443 # Listen address (default “:8443”)
    restart: always

However, the containers deployed in this way would keep restarting repeatedly, making them completely unsuitable for use.

Here is its execution logs:

stdiscosrv: error: unknown flag -e, did you mean one of "-h", "-d", "-v"?

Then I tried to download the Release version of syncthing/discosrv, but when it ran, it looked like it was running, but it didn’t work

This picture is already running stdiscosrv server

Then I went and configured the global discovery server

But it still doesn’t work

relaysrv server is OK
stdiscosrv server only work on windows server

The CLI arguments of your container are missing a second dash. It’s --debug instead of -debug and so on:

https://docs.syncthing.net/users/stdiscosrv.html

As for your Windows problems, did you open the port in your firewall?

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