Update Docker Documentation

The official documentation (“https://docs.duplicati.com”) doesn’t provide many details on using the official docker image. This can be problematic as I found recently when I was trying to diagnose the “Server lost connection…” error. I knew it must be to do with the “–webservice-allowed-hostnames” option but all the advice related to the linuxserver image (which uses “CLI-ARGS”) or the non-docker installation.

Finallly through gleaning some information from the code and related posts about how the environment options are often formated as “DUPLICATI__” I figured out that the working configuration is:

```
duplicati:
image: duplicati/duplicati:latest
container_name: duplicati
environment:
- DUPLICATI__WEBSERVICE_ALLOWED_HOSTNAMES=<hostname>
```

But strangely this is not in the official docs. Afterwards I searched to find if it was recorded anywhere and I found happily that the actual docker image page (https://hub.docker.com/r/duplicati/duplicati/) has much more helpful info! Unfortunately this is not high in the list in terms of search results and it is strange that this great info isn’t in the official docs.

I think it would be extremely useful to just copy all the info from the docker page and include it in the docs. I would be happy to do it myself, but the docs don’t seem to be open source? I think this will alleviate a lot of frustration with people trying to configure the very common linux docker installation scenario (https://www.reddit.com/r/selfhosted/comments/1ik9469/what_to_use_for_backups_replacing_duplicati/).

P.S. Would also love to have a list of all the environment variables, but I know that is sort of covered by the info on the docker page, so not essential.

Hi @spectabilis, welcome to the forum :waving_hand:

I agree, and thanks for the suggestion. I have updated the docs with a more prominent link and copied some of the description over.

The docs are also open-source and lives here:

Contributions are much appreciated!

That is a fairly long list and always changing (expanding mostly).
Any commandline argument to the server can also be provided as an environment variable (specifically for better Docker support).

1 Like

Thanks for the link to the docs, don’t know how I didn’t find that! I will have a look later on and may submit some contributions as I work on my setup!

1 Like