Docker compose - discosrv

Good afternoon everyone,

My very first post. I have been using Syncthing for some time, and first off, hats off to y’all for an awesome project.

I am trying to setup Syncthing Discovery Server via docker compose. I have sort of frankinsteined together a working file, but to run it behind a reverse proxy, I have to specify -http. I can’t see to see where to set that in the docker compose file?

Also, other than /var/stdiscosrv folder in a volume, are there any other folders people might recommend?

Thanks,

Discovery server is a self contained container, why do you want to get compose involved?

Mostly was thinking so that I could put it behind my traefik container and be able to Store persistent data.

Also I am familiar with compose but not so much with what you’re referring to as far as keeping it running automatically. I know in a compose file you can tell it to restart unless stopped.

I assume I’m missing something then?

Thanks,

I think adding this argument to the command part of the relevant service will work.

services:
  stdiscosrver:
  ...other discosrv items...
  command: 
    - "--http"
  ...

Thanks I’ll give it a try!