Preparation --> follow the preparation steps in this [How-To]
in CLI:
- mkdir /home/docker1 create a folder for user docker1 in home directory (if not already done)
- mkdir /home/docker1/duplicati create a folder where we will put the docker-compose.yml file to setup watchtower
- cd /home/docker1/duplicati change in that directory
- nano docker-compose.yml create an empty file and start the editor
- copy the content of the Source Code box below in the editor, change according your setup and save the file with Ctrl+X and y; name must be "docker-compose.yml
- to copy the content of the Source Code box use the small icon in the top right corner of the box ("Copy Contents")
Code
---
version: "2"
services:
duplicati:
image: linuxserver/duplicati
container_name: duplicati
environment:
- PUID=1002 # change according your needs
- PGID=100 # change according your needs
- TZ=Europe/Berlin # change according your needs
- CLI_ARGS= #optional, see documentation
volumes:
- /srv/dev-disk-by-label-data/docker/duplicati:/config # change path according your needs;
- /srv/dev-disk-by-label-data/data:/data
- /srv/dev-disk-by-label-data/pictures:/pictures
- /srv/dev-disk-by-label-data/movies:/movies
- /srv/dev-disk-by-label-data/music:/music
- /srv/dev-disk-by-label-data/docker/dummy:/source # if /source is not linked, a volume will be created automatically which is avoided by using /dummy
- /srv/dev-disk-by-label-data/docker/dummy:/backups # if /backup it not linked, a volume will be created automatically which is avoided by using /dummy
ports:
- 8200:8200
restart: unless-stopped
Alles anzeigen
- after you saved the file, run docker-compose up -d in the directory where the docker-compose.yml file is located; this will download the needed image and start the container; the correct image for your architecture (amd64, arm64 or armhf) should be pulled
You can also run the docker-compose file in Portainer without using the CLI:[How-To] Use docker-compose files in Portainer
For further details: https://hub.docker.com/r/linuxserver/duplicati
There you will also find information on updating the image
Webui can be reached at your-ip:8200